From: Evan Prodromou Date: Sun, 31 Aug 2008 01:36:03 +0000 (-0400) Subject: int div games X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53854b7cb11a964e2e14d5f147748bcc08e6b8f2;p=quix0rs-gnu-social.git int div games darcs-hash:20080831013603-84dde-e4e04c8bbb97cf9ed300a9c07dc4e33f8a5edd05.gz --- 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);