Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: 68d7f1168bc530ef50826a63c3f5d794bbc1845f
https://github.com/Checkmk/checkmk/commit/68d7f1168bc530ef50826a63c3f5d794b…
Author: Luka Racic <luka.racic(a)checkmk.com>
Date: 2024-01-25 (Thu, 25 Jan 2024)
Changed paths:
A .werks/16330
M cmk/base/plugins/agent_based/utils/size_trend.py
M tests/unit/cmk/base/plugins/agent_based/utils/test_size_trend.py
Log Message:
-----------
16330 FIX size_trend: avoid 'infinite to integer' crash
While calculating how much time is left until the resource is full, if the value of the mb
in range was too low (e.g. 1e-320) the check used to crash with 'infinite to
integer'.
This has now been fixed and if the value is too low and causes division with it to result
in 'inf', the check will not be executed.
SUP-17029
Change-Id: I3093ceb20525e7945908a4fdacf5fd60f9fc9e1f