Fix incorrect calculation in Downtime::IsInEffect

fixes #11589
This commit is contained in:
Gunnar Beutner 2016-05-11 14:13:05 +02:00
parent 90f102abf3
commit 0b95be7b99
1 changed files with 1 additions and 1 deletions

View File

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