Notification#BeginExecuteNotification(): SetNextNotification() correctly

refs #5561

(cherry picked from commit 3b2054761ad90e71fba82d13cd57d7388f524993)
This commit is contained in:
Alexander A. Klimov 2019-01-11 18:25:12 +01:00 committed by Michael Friedrich
parent cd65ffc55c
commit bac6f17eff

View File

@ -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;
}