towerops/lib/towerops_web/graphql/resolvers
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
..
activity.ex fix: resolve compilation errors, test failures, and credo issues 2026-02-14 12:23:10 -06:00
agent.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
alert.ex ux: improve PagerDuty integration clarity 2026-02-14 11:28:57 -06:00
check.ex add query_helpers tests and fix all credo issues (#56) 2026-03-17 10:43:57 -05:00
device.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
escalation_policy.ex feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
helpers.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
integration.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
maintenance_window.ex add maintenance windows REST API and GraphQL support 2026-03-11 14:33:25 -05:00
member.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
organization.ex add mobile token auth to GraphQL endpoint (#48) 2026-03-16 15:23:07 -05:00
schedule.ex feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
site.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
time_series.ex fix: correct 32-bit SNMP counter wrap detection for all traffic calculations (#163) 2026-03-25 11:03:43 -05:00