SBS1 list prune fix

This commit is contained in:
Nick Foster 2012-11-04 18:40:45 -08:00
parent 3cfeb5d705
commit fcb06ef25a

View File

@ -52,7 +52,7 @@ class output_sbs1(air_modes.parse):
# Checking to see if we need to clean up in the event that the
# dictionary is getting too large.
if len(self._aircraft_id_map) > 1e4:
minimum = min(self._aircraft_id_map.values()) + (len(self_aircraft_id_map) - 1e4)
minimum = min(self._aircraft_id_map.values()) + (len(self._aircraft_id_map) - 1e4)
for icao, _id in self._aircraft_id_map:
if _id < minimum:
del self._aircraft_id_map[icao]