summaryrefslogtreecommitdiff
path: root/extlib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-30 21:44:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-30 21:44:04 -0400
commit7ba8bce1d3cdf93fe0b0340643f0a1dcddb5127a (patch)
treeb9777bf5c0c2ba0d53d43d0d9a1346a4fdda00f1 /extlib
parent53854b7cb11a964e2e14d5f147748bcc08e6b8f2 (diff)
slightly better int math
darcs-hash:20080831014404-84dde-ef3f9aa997b6d0727958f56d68c9b6738e20225e.gz
Diffstat (limited to 'extlib')
-rw-r--r--extlib/XMPPHP/XMLStream.php2
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);