some fixes from on the jabber server

darcs-hash:20080830083502-5b646-d6a66157d86ca84cfa6cf6280bb2eb17bc20e02d.gz
This commit is contained in:
evan
2008-08-30 04:35:02 -04:00
parent 19147201c8
commit 55816cf24e
2 changed files with 4 additions and 2 deletions

View File

@@ -87,8 +87,8 @@ class QueueHandler {
$start = microtime();
$this->idle();
$used = microtime() - $start;
if ($used < 3000000) {
usleep(3000000 - $used);
if ($used < 1000000) {
usleep(1000000 - $used);
}
}
} while (true);