Fix SBS-1 ID list prune issue. Lousy fix, but it'll do for now. The
backend needs a rewrite.
This commit is contained in:
parent
95ff2cade0
commit
f0323160a0
@ -83,7 +83,7 @@ class output_sbs1:
|
||||
# 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)
|
||||
for icao, _id in self._aircraft_id_map.iteritems():
|
||||
for icao, _id in map(self._aircraft_id_map).iteritems():
|
||||
if _id < minimum:
|
||||
del self._aircraft_id_map[icao]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user