IcingaConfigHelper: output should fit defined tests

This commit is contained in:
Thomas Gelf 2016-02-28 13:26:32 +01:00
parent 255acf2fd5
commit a5013cd052
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}