From 21d1ffa28bac749cfe7ebdf48fbccd7aa5387b23 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 11 May 2016 14:13:05 +0200 Subject: [PATCH] Fix incorrect calculation in Downtime::IsInEffect fixes #11589 --- lib/icinga/downtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/downtime.cpp b/lib/icinga/downtime.cpp index 62bdb7c71..eaa2e9ba2 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -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