mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Notification#BeginExecuteNotification(): SetNextNotification() correctly
refs #5561 (cherry picked from commit 3b2054761ad90e71fba82d13cd57d7388f524993)
This commit is contained in:
parent
cd65ffc55c
commit
bac6f17eff
@ -288,11 +288,9 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
|
||||
<< "': before specified begin time (" << Utility::FormatDuration(timesBegin) << ")";
|
||||
|
||||
/* we need to adjust the next notification time
|
||||
* to now + begin delaying the first notification
|
||||
* delaying the first notification
|
||||
*/
|
||||
double nextProposedNotification = now + timesBegin + 1.0;
|
||||
if (GetNextNotification() > nextProposedNotification)
|
||||
SetNextNotification(nextProposedNotification);
|
||||
SetNextNotification(checkable->GetLastHardStateChange() + timesBegin + 1.0);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user