towerops/lib/towerops_web/live/device_live
Graham McIntire 86db804729 fix: correct 32-bit SNMP counter wrap detection for all traffic calculations (#163)
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
2026-03-25 11:03:43 -05:00
..
form.ex fix: remove device_role_source from form params (#110) 2026-03-22 12:27:41 -05:00
form.html.heex feat: simplify device type to manual-only with 6 options (#109) 2026-03-22 11:24:53 -05:00
index.ex fix/critical-logic-and-memory-bugs (#159) 2026-03-25 09:50:21 -05:00
index.html.heex fix-sticky-header-overlap (#60) 2026-03-17 13:21:58 -05:00
show.ex fix: correct 32-bit SNMP counter wrap detection for all traffic calculations (#163) 2026-03-25 11:03:43 -05:00
show.html.heex update more (#146) 2026-03-24 16:32:09 -05:00