mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fix bug pertaining to https://github.com/LibreQoE/LibreQoS/pull/320
This commit is contained in:
parent
567cde6b7c
commit
cfaae176d4
@ -331,10 +331,11 @@ def getCircuitLatencyStats(subscriberCircuits):
|
|||||||
# If we can't identify RTT this time around, use most recently recorded RTT
|
# If we can't identify RTT this time around, use most recently recorded RTT
|
||||||
# None by default, change if found in priorQuery
|
# None by default, change if found in priorQuery
|
||||||
circuit['stats']['sinceLastQuery']['tcpLatency'] = None
|
circuit['stats']['sinceLastQuery']['tcpLatency'] = None
|
||||||
if 'priorQuery' in circuit['stats'] and circuit['stats']['priorQuery'] != None:
|
if 'priorQuery' in circuit['stats']:
|
||||||
if 'priorQuery' in circuit['stats']:
|
if circuit['stats']['priorQuery'] != None:
|
||||||
if 'tcpLatency' in circuit['stats']['priorQuery']:
|
if 'priorQuery' in circuit['stats']:
|
||||||
circuit['stats']['sinceLastQuery']['tcpLatency'] = circuit['stats']['priorQuery']['tcpLatency']
|
if 'tcpLatency' in circuit['stats']['priorQuery']:
|
||||||
|
circuit['stats']['sinceLastQuery']['tcpLatency'] = circuit['stats']['priorQuery']['tcpLatency']
|
||||||
|
|
||||||
return subscriberCircuits
|
return subscriberCircuits
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user