[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaConfigHelper: output should fit defined tests

git at icinga.org git at icinga.org
Sun Feb 28 17:12:40 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: a5013cd052a47f81f17bd2a2a9bf3376690bbc3f
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=a5013cd052a47f81f17bd2a2a9bf3376690bbc3f

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Feb 28 13:26:32 2016 +0100

IcingaConfigHelper: output should fit defined tests

---

 library/Director/IcingaConfig/IcingaConfigHelper.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/IcingaConfig/IcingaConfigHelper.php b/library/Director/IcingaConfig/IcingaConfigHelper.php
index 26e3c58..0e52b4c 100644
--- a/library/Director/IcingaConfig/IcingaConfigHelper.php
+++ b/library/Director/IcingaConfig/IcingaConfigHelper.php
@@ -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;
             }



More information about the icinga-checkins mailing list