towerops/lib/towerops_web/graphql
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
..
middleware add mobile token auth to GraphQL endpoint (#48) 2026-03-16 15:23:07 -05:00
resolvers fix: correct 32-bit SNMP counter wrap detection for all traffic calculations (#163) 2026-03-25 11:03:43 -05:00
types feat: simplify device type to manual-only with 6 options (#109) 2026-03-22 11:24:53 -05:00
context.ex Security fixes: mask credentials in logs/API, fix cookie/CSP/LIKE injection/webhooks 2026-02-15 09:09:04 -06:00
schema.ex add service checks REST API, GraphQL API, and ping executor (#52) 2026-03-16 18:40:18 -05:00
subscriptions.ex add real-time GraphQL API with time-series queries and subscriptions 2026-03-12 10:24:39 -05:00