]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
floor
authorEvan Prodromou <evan@prodromou.name>
Sun, 31 Aug 2008 01:31:32 +0000 (21:31 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 31 Aug 2008 01:31:32 +0000 (21:31 -0400)
darcs-hash:20080831013132-84dde-dc51363f8f6c6a0fece8b4acf7088b64acedc5f9.gz

extlib/XMPPHP/XMLStream.php

index d23585c14ed9f79d49b3d21c0aac100fc3948bcd..bf0eaa7cc59ecf8678cb3b6bcea790f711b8a815 100644 (file)
@@ -335,7 +335,7 @@ class XMPPHP_XMLStream {
                                $secs = 0;
                                $usecs = 0;
                        } else {
-                               $secs = $remaining / 1000000;
+                               $secs = floor($remaining / 1000000);
                                $usecs = $remaining % 1000000;
                        }
                        $this->log->log("stream_select(read, write, except, $secs, $usecs)",  XMPPHP_Log::LEVEL_VERBOSE);