diff --git a/lib/icinga/checkable-downtime.cpp b/lib/icinga/checkable-downtime.cpp index ab35185e8..e32b5356a 100644 --- a/lib/icinga/checkable-downtime.cpp +++ b/lib/icinga/checkable-downtime.cpp @@ -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;