Less CPU used to listen to event socket.
This commit is contained in:
parent
c20e83e64c
commit
7a71f0bf0a
|
|
@ -72,7 +72,7 @@ class event_socket {
|
||||||
$kv = explode(':', $line, 2);
|
$kv = explode(':', $line, 2);
|
||||||
$content[trim($kv[0])] = trim($kv[1]);
|
$content[trim($kv[0])] = trim($kv[1]);
|
||||||
}
|
}
|
||||||
usleep(100);
|
usleep(1000);
|
||||||
|
|
||||||
if (feof($this->fp)) {
|
if (feof($this->fp)) {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue