mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Apply ceiling to TCP Latency tracked by circuit, to avoid outliers messing up stats
This commit is contained in:
parent
d4d223f098
commit
696018feba
@ -310,7 +310,9 @@ def getCircuitLatencyStats(subscriberCircuits):
|
||||
for entry in listOfEntries:
|
||||
if 'tc' in entry:
|
||||
handle = hex(int(entry['tc'].split(':')[0])) + ':' + hex(int(entry['tc'].split(':')[1]))
|
||||
tcpLatencyForClassID[handle] = entry['avg']
|
||||
# To avoid outliers messing up avg for each circuit - cap at ceiling of 200ms
|
||||
ceiling = 200.0
|
||||
tcpLatencyForClassID[handle] = min(entry['avg'], ceiling)
|
||||
|
||||
for circuit in subscriberCircuits:
|
||||
if 'stats' not in circuit:
|
||||
|
Loading…
Reference in New Issue
Block a user