mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-03 22:04:27 -04:00
IcingaConfigHelper: output should fit defined tests
This commit is contained in:
parent
255acf2fd5
commit
a5013cd052
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue