diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-30 21:44:04 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-30 21:44:04 -0400 |
commit | 7ba8bce1d3cdf93fe0b0340643f0a1dcddb5127a (patch) | |
tree | b9777bf5c0c2ba0d53d43d0d9a1346a4fdda00f1 /extlib | |
parent | 53854b7cb11a964e2e14d5f147748bcc08e6b8f2 (diff) |
slightly better int math
darcs-hash:20080831014404-84dde-ef3f9aa997b6d0727958f56d68c9b6738e20225e.gz
Diffstat (limited to 'extlib')
-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 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); |