mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Merge pull request #9817 from Icinga/flexible-downtimes-disappear-too-early-9797
Downtime#Start(): trigger flexible downtimes not earlier than fixed ones
This commit is contained in:
commit
45d5a3f5f3
@ -132,7 +132,8 @@ void Downtime::Start(bool runtimeCreated)
|
||||
Log(LogNotice, "Downtime")
|
||||
<< "Checkable '" << checkable->GetName() << "' already in a NOT-OK state."
|
||||
<< " Triggering downtime now.";
|
||||
TriggerDowntime(checkable->GetLastStateChange());
|
||||
|
||||
TriggerDowntime(std::fmax(std::fmax(GetStartTime(), GetEntryTime()), checkable->GetLastStateChange()));
|
||||
}
|
||||
|
||||
if (GetFixed() && CanBeTriggered()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user