Werk #22515 · Sep 29, 26
Averaging checks: Fix ZeroDivisionError after time anomalies
Checks that average their values over time could crash with
ZeroDivisionError: float division by zero. This was seen with the
Proxmox VE CPU Utilization service when averaging is configured: it uses the
uptime of the VM as its clock, and if the reported uptime stepped back and then
returned to exactly the time at which averaging had started, the next check
crashed.
This case is now treated like other time anomalies, and the service keeps reporting the averaged value.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p15All Editions