mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Fix division by zero in Perfdata.php
Fixes #5708 Signed-off-by: Michael Friedrich <Michael.Friedrich@netways.de>
This commit is contained in:
parent
ea44ae3693
commit
e6bb32be64
@ -100,6 +100,7 @@ class Perfdata
|
||||
}
|
||||
$step = $key;
|
||||
}
|
||||
if ($step <= 0) $step = 1;
|
||||
return $prefix
|
||||
. number_format($val / $step, 1, ',', '.')
|
||||
. ' '
|
||||
|
Loading…
x
Reference in New Issue
Block a user