less sleeping, slightly

darcs-hash:20080830064431-84dde-42629109de11f65da9d876aee168abdf7c4ced3d.gz
This commit is contained in:
Evan Prodromou 2008-08-30 02:44:31 -04:00
parent 755f192df0
commit ac85a4b0fa

View File

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