From 7ba8bce1d3cdf93fe0b0340643f0a1dcddb5127a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 30 Aug 2008 21:44:04 -0400 Subject: slightly better int math darcs-hash:20080831014404-84dde-ef3f9aa997b6d0727958f56d68c9b6738e20225e.gz --- extlib/XMPPHP/XMLStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extlib') diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index 91d81df67..5e1d34235 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); -- cgit v1.2.3-54-g00ecf