]> granicus.if.org Git - icinga2/commitdiff
Fix start condition for downtimes
authorGunnar Beutner <gunnar@beutner.name>
Tue, 3 Mar 2015 08:52:13 +0000 (09:52 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 3 Mar 2015 08:52:13 +0000 (09:52 +0100)
fixes #8560

lib/icinga/checkable-downtime.cpp

index ab35185e8c6f8661be71b995232c353f248eb119..e32b5356aa15fd79ab01be7741678a60b7e9cc79 100644 (file)
@@ -203,7 +203,7 @@ void Checkable::TriggerDowntime(const String& id)
 
        double now = Utility::GetTime();
 
-        if (now < downtime->GetStartTime() && now > downtime->GetEndTime()) {
+        if (now < downtime->GetStartTime() || now > downtime->GetEndTime()) {
                Log(LogDebug, "Checkable")
                    << "Not triggering downtime with ID '" << downtime->GetLegacyId() << "': current time is outside downtime window.";
                return;