Fixed local RSSI and SNR cache pop order
This commit is contained in:
parent
32a1261d98
commit
a732767a28
@ -1049,7 +1049,7 @@ class Transport:
|
|||||||
Transport.local_client_rssi_cache.append([packet.packet_hash, packet.rssi])
|
Transport.local_client_rssi_cache.append([packet.packet_hash, packet.rssi])
|
||||||
|
|
||||||
while len(Transport.local_client_rssi_cache) > Transport.LOCAL_CLIENT_CACHE_MAXSIZE:
|
while len(Transport.local_client_rssi_cache) > Transport.LOCAL_CLIENT_CACHE_MAXSIZE:
|
||||||
Transport.local_client_rssi_cache.pop()
|
Transport.local_client_rssi_cache.pop(0)
|
||||||
|
|
||||||
if hasattr(interface, "r_stat_snr"):
|
if hasattr(interface, "r_stat_snr"):
|
||||||
if interface.r_stat_rssi != None:
|
if interface.r_stat_rssi != None:
|
||||||
@ -1058,7 +1058,7 @@ class Transport:
|
|||||||
Transport.local_client_snr_cache.append([packet.packet_hash, packet.snr])
|
Transport.local_client_snr_cache.append([packet.packet_hash, packet.snr])
|
||||||
|
|
||||||
while len(Transport.local_client_snr_cache) > Transport.LOCAL_CLIENT_CACHE_MAXSIZE:
|
while len(Transport.local_client_snr_cache) > Transport.LOCAL_CLIENT_CACHE_MAXSIZE:
|
||||||
Transport.local_client_snr_cache.pop()
|
Transport.local_client_snr_cache.pop(0)
|
||||||
|
|
||||||
if len(Transport.local_client_interfaces) > 0:
|
if len(Transport.local_client_interfaces) > 0:
|
||||||
if Transport.is_local_client_interface(interface):
|
if Transport.is_local_client_interface(interface):
|
||||||
|
Loading…
Reference in New Issue
Block a user