|
@@ -216,7 +216,6 @@ class Select implements EventInterface
|
|
|
$next_run_time = -$scheduler_data['priority'];
|
|
|
$time_now = \microtime(true);
|
|
|
$this->_selectTimeout = ($next_run_time - $time_now) * 1000000;
|
|
|
- dump($this->_selectTimeout);
|
|
|
if ($this->_selectTimeout <= 0) {
|
|
|
$this->_scheduler->extract();
|
|
|
|
|
@@ -272,7 +271,7 @@ class Select implements EventInterface
|
|
|
$ret = stream_select($read, $write, $except, 0, $this->_selectTimeout);
|
|
|
restore_error_handler();
|
|
|
} else {
|
|
|
- usleep($this->_selectTimeout);
|
|
|
+ usleep((int)$this->_selectTimeout);
|
|
|
$ret = false;
|
|
|
}
|
|
|
|