Fixed warning because of improper int casting
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 4 Jun 2012 15:38:11 +0000 (15:38 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 4 Jun 2012 15:38:11 +0000 (15:38 +0000)
bin/extras/marinetraffic.py

index 87a34860a655d36d193285a31309b4242e226ea4..febe8a9f1de3a9a93b961dd82fd53423bb488172 100755 (executable)
@@ -368,7 +368,7 @@ def import_track(mmsi, dt, isodt):
             sog = int(info['speed']*AIS_SOG_SCALE)
             latitude = int(float(info['lat'])*AIS_LATLON_SCALE)
             longitude = int(float(info['lon'])*AIS_LATLON_SCALE)
-            cog = int(info['course'])*AIS_COG_SCALE
+            cog = int(info['course']*AIS_COG_SCALE)
             heading = AIS_NO_HEADING
             source = 'MTTR'
             print datetime.utcfromtimestamp(timestamp),