Skip to content

Commit

Permalink
Don't update TimePeriod ranges for inactive objects
Browse files Browse the repository at this point in the history
fixes #12511
  • Loading branch information
gunnarbeutner committed Aug 23, 2016
1 parent ed5c8dd commit 3b49041
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/icinga/timeperiod.cpp
Expand Up @@ -345,6 +345,9 @@ void TimePeriod::UpdateTimerHandler(void)
double now = Utility::GetTime();

BOOST_FOREACH(const TimePeriod::Ptr& tp, ConfigType::GetObjectsByType<TimePeriod>()) {
if (!tp->IsActive())
continue;

double valid_end;

{
Expand Down

0 comments on commit 3b49041

Please sign in to comment.