mirror of https://github.com/Icinga/icinga2.git
Allow Checkable#retry_interval to be 0
refs #6871
(cherry picked from commit 9ae738d17f
)
This commit is contained in:
parent
26db972859
commit
9040c9b512
|
@ -79,7 +79,8 @@ void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin)
|
|||
if (interval > 1)
|
||||
adj = fmod(now * 100 + GetSchedulingOffset(), interval * 100) / 100.0;
|
||||
|
||||
adj = std::min(0.5 + fmod(GetSchedulingOffset(), interval * 5) / 100.0, adj);
|
||||
if (adj != 0.0)
|
||||
adj = std::min(0.5 + fmod(GetSchedulingOffset(), interval * 5) / 100.0, adj);
|
||||
|
||||
double nextCheck = now - adj + interval;
|
||||
|
||||
|
|
Loading…
Reference in New Issue