Fix start condition for downtimes

fixes #8560
This commit is contained in:
Gunnar Beutner 2015-03-03 09:52:13 +01:00
parent 2867d79514
commit cf37decbef

View 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;