]> git.mxchange.org Git - core.git/commitdiff
Tried to fix a warning
authorRoland Häder <roland@mxchange.org>
Mon, 17 Aug 2009 21:06:21 +0000 (21:06 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 17 Aug 2009 21:06:21 +0000 (21:06 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index e3001112979257da96a5ceca6cede76469d6416f..d574f4129ed3e0e4e347f25eec0d962503ba7045 100644 (file)
@@ -1145,7 +1145,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                // Idle so long with found function
                if (function_exists('time_sleep_until')) {
                        // Get current time and add idle time
-                       $sleepUntil = $this->getMilliTime() + $milliSeconds / 1000;
+                       $sleepUntil = $this->getMilliTime() + abs($milliSeconds) / 1000;
 
                        // New PHP 5.1.0 function found
                        $hasSlept = time_sleep_until($sleepUntil);