The wrap detection only applied the 2^32 correction when the previous counter was in the upper half of the 32-bit range (> 2^31). On fast links, counters wrap regardless of where in the range they sit. Three graph rendering paths had no wrap detection at all, just max(0). Consolidated all bps calculations into a single public Capacity.calculate_bps/3 that always tries the 2^32 correction for negative deltas. 64-bit HC counter resets remain clamped to zero since the corrected delta stays negative. Reviewed-on: graham/towerops-web#163 |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||