]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
int div games
authorEvan Prodromou <evan@prodromou.name>
Sun, 31 Aug 2008 01:36:03 +0000 (21:36 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 31 Aug 2008 01:36:03 +0000 (21:36 -0400)
darcs-hash:20080831013603-84dde-e4e04c8bbb97cf9ed300a9c07dc4e33f8a5edd05.gz

extlib/XMPPHP/XMLStream.php

index bf0eaa7cc59ecf8678cb3b6bcea790f711b8a815..91d81df67e1b54ea1ada2b78b2e4e6a9f52010ca 100644 (file)
@@ -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);