From 53854b7cb11a964e2e14d5f147748bcc08e6b8f2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 30 Aug 2008 21:36:03 -0400 Subject: [PATCH] int div games darcs-hash:20080831013603-84dde-e4e04c8bbb97cf9ed300a9c07dc4e33f8a5edd05.gz --- extlib/XMPPHP/XMLStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index bf0eaa7cc5..91d81df67e 100644 --- a/extlib/XMPPHP/XMLStream.php +++ b/extlib/XMPPHP/XMLStream.php @@ -335,8 +335,8 @@ class XMPPHP_XMLStream { $secs = 0; $usecs = 0; } else { - $secs = floor($remaining / 1000000); $usecs = $remaining % 1000000; + $secs = ($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); -- 2.39.5