IcingaConfigHelper: output should fit defined tests
This commit is contained in:
parent
255acf2fd5
commit
a5013cd052
|
@ -218,7 +218,7 @@ class IcingaConfigHelper
|
|||
);
|
||||
|
||||
foreach ($steps as $unit => $duration) {
|
||||
if ($seconds > $duration) {
|
||||
if ($seconds >= $duration) {
|
||||
$parts[] = (int) floor($seconds / $duration) . $unit;
|
||||
$seconds = $seconds % $duration;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue