mirror of https://github.com/Icinga/icinga2.git
parent
1df13c792b
commit
9080ca2867
|
@ -299,12 +299,12 @@ mainloop:
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
double timeDiff = lastLoop - now;
|
double timeDiff = lastLoop - now;
|
||||||
|
|
||||||
if (abs(timeDiff) > 15) {
|
if (std::fabs(timeDiff) > 15) {
|
||||||
/* We made a significant jump in time. */
|
/* We made a significant jump in time. */
|
||||||
Log(LogInformation, "Application")
|
Log(LogInformation, "Application")
|
||||||
<< "We jumped "
|
<< "We jumped "
|
||||||
<< (timeDiff < 0 ? "forward" : "backward")
|
<< (timeDiff < 0 ? "forward" : "backward")
|
||||||
<< " in time: " << abs(timeDiff) << " seconds";
|
<< " in time: " << std::fabs(timeDiff) << " seconds";
|
||||||
|
|
||||||
Timer::AdjustTimers(-timeDiff);
|
Timer::AdjustTimers(-timeDiff);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue