]> granicus.if.org Git - icinga2/commitdiff
Fix some more compiler warnings
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 12 Jan 2015 13:19:20 +0000 (14:19 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 12 Jan 2015 13:19:20 +0000 (14:19 +0100)
refs #8175

lib/base/application.cpp

index 2c549a8bfbac450a5f0139006609921293955ec2..bbeda2e392f337891272a0286b17d6d212c8b998 100644 (file)
@@ -299,12 +299,12 @@ mainloop:
                double now = Utility::GetTime();
                double timeDiff = lastLoop - now;
 
-               if (abs(timeDiff) > 15) {
+               if (std::fabs(timeDiff) > 15) {
                        /* We made a significant jump in time. */
                        Log(LogInformation, "Application")
                            << "We jumped "
                            << (timeDiff < 0 ? "forward" : "backward")
-                           << " in time: " << abs(timeDiff) << " seconds";
+                           << " in time: " << std::fabs(timeDiff) << " seconds";
 
                        Timer::AdjustTimers(-timeDiff);
                }