diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-12-21 01:43:44 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-12-21 01:43:44 +0000 |
commit | 08f8cd2b6ae49bfcf5b7a07bd59f9354679f676e (patch) | |
tree | f676b1095a01ffeab25816e801f5cf2cfd3c6026 /xgps | |
parent | 384e4844be124b7100d2b15af352a705cb4adce5 (diff) | |
download | gpsd-08f8cd2b6ae49bfcf5b7a07bd59f9354679f676e.tar.gz |
Make the entry-aging logic in the AIS display actually work.
Diffstat (limited to 'xgps')
-rwxr-xr-x | xgps | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -191,7 +191,8 @@ class AISView: mmsi = self.name_to_mmsi[name] if self.named[mmsi].entry_time < time.time() - AISView.DWELLTIME: del self.named[mmsi] - del name_to_mmsi[name] + del self.name_to_mmsi[name] + self.store.remove(here) def latlon(self, lat, lon): "Latitude/longitude display in nice format." @@ -219,6 +220,7 @@ class AISView: if ais.type in (1, 2, 3): #print "CNB", ais.mmsi if ais.mmsi in self.named: + #print "MMSI match" for i in range(len(self.store)): here = self.store.get_iter(i) name = self.store.get_value(here, 1) @@ -227,7 +229,7 @@ class AISView: latlon = self.latlon(ais.lat, ais.lon) self.store.set_value(here, 4, latlon) elif ais.type == 5: - print "Ship", ais.mmsi + #print "Ship", ais.mmsi self.enter(ais, ais.shipname) self.store.prepend( (ais.type, ais.shipname, ais.callsign, ais.destination, "")) |