diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-30 21:36:03 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-30 21:36:03 -0400 |
commit | 53854b7cb11a964e2e14d5f147748bcc08e6b8f2 (patch) | |
tree | b26409f9427d6200fc2c892c9d76e9afbd468e81 /extlib/XMPPHP/XMLStream.php | |
parent | 4fccba70f1cede48814548315742577160fc30ed (diff) |
int div games
darcs-hash:20080831013603-84dde-e4e04c8bbb97cf9ed300a9c07dc4e33f8a5edd05.gz
Diffstat (limited to 'extlib/XMPPHP/XMLStream.php')
-rw-r--r-- | extlib/XMPPHP/XMLStream.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index bf0eaa7cc..91d81df67 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); |