]> granicus.if.org Git - icinga2/commit
Put running downtimes in effect 6704/head
authorEdgar Fuß <ef@math.uni-bonn.de>
Thu, 18 Oct 2018 16:42:21 +0000 (18:42 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 16:42:21 +0000 (18:42 +0200)
commit9c1e9f42646e8dc2ac9976719e245b6d9afdeb1e
tree98c21859ec9111e744f80791343eadc5757328e7
parentf1597ca5bdd015201e291207a0c3a39761da6cb9
Put running downtimes in effect

If Icinga2 was restarted with a newly configured downtime that should
be in effect at the time of restart, the should-be-running segment of
it was not put into effect.

Add new LegacyTimePeriod::FindRunningSegment() and
ScheduledDowntime::FindRunningSegment() functions, call the latter in
ScheduledDowntime::CreateNextDowntime() before trying the old
ScheduledDowntime::FindNextSegment().
lib/icinga/legacytimeperiod.cpp
lib/icinga/legacytimeperiod.hpp
lib/icinga/scheduleddowntime.cpp
lib/icinga/scheduleddowntime.hpp