mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 16:26:42 -04:00
Fix checkresults from the future breaking checks
This commit is contained in:
parent
d2755351d3
commit
c97f3c80f5
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||
long old_attempt = GetCheckAttempt();
|
||||
bool recovery = false;
|
||||
|
||||
/* Ignore check results older than the current one. */
|
||||
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart())
|
||||
/* Ignore check results older than the current one, except if the previous check result is from the future. */
|
||||
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart() && old_cr->GetExecutionStart() < now)
|
||||
return;
|
||||
|
||||
/* The ExecuteCheck function already sets the old state, but we need to do it again
|
||||
|
|
|
|||
Loading…
Reference in a new issue