Fix incorrect calculation in Downtime::IsInEffect

fixes #11589
This commit is contained in:
Gunnar Beutner 2016-05-11 14:13:05 +02:00
parent 40b4040880
commit 21d1ffa28b

View File

@ -166,7 +166,7 @@ bool Downtime::IsInEffect(void) const
if (triggerTime == 0) if (triggerTime == 0)
return false; return false;
return (triggerTime + GetDuration() < now); return (now < triggerTime + GetDuration());
} }
bool Downtime::IsTriggered(void) const bool Downtime::IsTriggered(void) const