From 82b6ef430120c516344d53e900491930705226a3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 23 Aug 2016 06:59:52 +0200 Subject: [PATCH] Don't update TimePeriod ranges for inactive objects fixes #12511 --- lib/icinga/timeperiod.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icinga/timeperiod.cpp b/lib/icinga/timeperiod.cpp index 43b8f3447..ccb938557 100644 --- a/lib/icinga/timeperiod.cpp +++ b/lib/icinga/timeperiod.cpp @@ -345,6 +345,9 @@ void TimePeriod::UpdateTimerHandler(void) double now = Utility::GetTime(); BOOST_FOREACH(const TimePeriod::Ptr& tp, ConfigType::GetObjectsByType()) { + if (!tp->IsActive()) + continue; + double valid_end; {