mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
Bugfix: Don't use check interval offsets for services with a check_interval smaller than 1 second.
This commit is contained in:
parent
513b3d6820
commit
10cc9bb1a3
@ -284,8 +284,13 @@ void Service::UpdateNextCheck(void)
|
|||||||
else
|
else
|
||||||
interval = GetCheckInterval();
|
interval = GetCheckInterval();
|
||||||
|
|
||||||
|
double adj = 0;
|
||||||
|
|
||||||
|
if (interval > 1)
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
double adj = fmod(now + GetSchedulingOffset(), interval);
|
adj = fmod(now + GetSchedulingOffset(), interval);
|
||||||
|
}
|
||||||
|
|
||||||
SetNextCheck(now - adj + interval);
|
SetNextCheck(now - adj + interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user