mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-04 22:00:16 +02:00
parent
1e9f2f57a3
commit
ecce27f9da
@ -244,6 +244,9 @@ void Timer::AdjustTimers(double adjustment)
|
|||||||
for (it = idx.begin(); it != idx.end(); it++) {
|
for (it = idx.begin(); it != idx.end(); it++) {
|
||||||
Timer::Ptr timer = it->lock();
|
Timer::Ptr timer = it->lock();
|
||||||
|
|
||||||
|
if (!timer)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (abs(now - (timer->m_Next + adjustment)) <
|
if (abs(now - (timer->m_Next + adjustment)) <
|
||||||
abs(now - timer->m_Next)) {
|
abs(now - timer->m_Next)) {
|
||||||
timer->m_Next += adjustment;
|
timer->m_Next += adjustment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user