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 |
||
|---|---|---|
| .. | ||
| assets | ||
| integration | ||
| mix/tasks | ||
| snmpkit | ||
| support | ||
| towerops | ||
| towerops_web | ||
| test_helper.exs | ||
| towerops_native_test.exs | ||