Fix that the first notification interval is incorrect

fixes #12257
This commit is contained in:
Michael Friedrich 2016-08-02 18:41:01 +02:00
parent 3f0b6ec003
commit 5498dc5e4f
1 changed files with 4 additions and 0 deletions

View File

@ -351,6 +351,10 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
UpdateNotificationNumber();
double now = Utility::GetTime();
SetLastNotification(now);
if (type == NotificationProblem && GetInterval() > 0)
SetNextNotification(now + GetInterval());
if (type == NotificationProblem)
SetLastProblemNotification(now);
}