LibreQoE / LibreQoS

A Quality of Experience and Smart Queue Management system for ISPs. Leverage CAKE to improve network responsiveness, enforce bandwidth plans, and reduce bufferbloat.
https://libreqos.io/
GNU General Public License v2.0
464 stars 50 forks source link

graphInfluxDB.py negative bytes? #349

Closed rchac closed 1 year ago

rchac commented 1 year ago

From @vettamatt : I see negative bytes used, confident it results from this line. circuit['stats']['currentQuery']['bytesSentDownload'] becomes significantly less than circuit['stats']['priorQuery']['bytesSentDownload'] I'm thinking of checking for that, and using the value of circuit['stats']['currentQuery']['bytesSentDownload'] in that situation rather than doing subtraction and having a negative value This seems to occur on the second run of refreshBandwidthGraphs() after full rebuild.

rchac commented 1 year ago

Attempted fix https://github.com/LibreQoE/LibreQoS/tree/fix349