Notification#BeginExecuteNotification(): SetNextNotification() correctly

refs #5561
This commit is contained in:
Alexander A. Klimov 2019-01-11 18:25:12 +01:00
parent b46c3c11bb
commit 3b2054761a
1 changed files with 2 additions and 4 deletions

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