From: Evan Prodromou Date: Sun, 31 Aug 2008 01:44:04 +0000 (-0400) Subject: slightly better int math X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ba8bce1d3cdf93fe0b0340643f0a1dcddb5127a;p=quix0rs-gnu-social.git slightly better int math darcs-hash:20080831014404-84dde-ef3f9aa997b6d0727958f56d68c9b6738e20225e.gz --- diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index 91d81df67e..5e1d342358 100644 --- a/extlib/XMPPHP/XMLStream.php +++ b/extlib/XMPPHP/XMLStream.php @@ -336,7 +336,7 @@ class XMPPHP_XMLStream { $usecs = 0; } else { $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); $updated = @stream_select($read, $write, $except, $secs, $usecs);