summaryrefslogtreecommitdiff
path: root/extlib/XMPPHP
diff options
context:
space:
mode:
Diffstat (limited to 'extlib/XMPPHP')
-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 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);