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 |
||
|---|---|---|
| .. | ||
| activity.ex | ||
| agent.ex | ||
| alert.ex | ||
| check.ex | ||
| device.ex | ||
| escalation_policy.ex | ||
| helpers.ex | ||
| integration.ex | ||
| maintenance_window.ex | ||
| member.ex | ||
| organization.ex | ||
| schedule.ex | ||
| site.ex | ||
| time_series.ex | ||