slightly better int math

darcs-hash:20080831014404-84dde-ef3f9aa997b6d0727958f56d68c9b6738e20225e.gz
This commit is contained in:
Evan Prodromou 2008-08-30 21:44:04 -04:00
parent 53854b7cb1
commit 7ba8bce1d3

View File

@ -336,7 +336,7 @@ class XMPPHP_XMLStream {
$usecs = 0; $usecs = 0;
} else { } else {
$usecs = $remaining % 1000000; $usecs = $remaining % 1000000;
$secs = ($remaining - $usecs) / 1000000; $secs = floor(($remaining - $usecs) / 1000000);
} }
$this->log->log("stream_select(read, write, except, $secs, $usecs)", XMPPHP_Log::LEVEL_VERBOSE); $this->log->log("stream_select(read, write, except, $secs, $usecs)", XMPPHP_Log::LEVEL_VERBOSE);
$updated = @stream_select($read, $write, $except, $secs, $usecs); $updated = @stream_select($read, $write, $except, $secs, $usecs);