Whoops
This commit is contained in:
parent
b1d501d009
commit
3160917b5e
@ -107,9 +107,9 @@ trait AuthKeyHandler
|
|||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
while (!feof($f)) {
|
while (!feof($f)) {
|
||||||
usleep(
|
usleep(
|
||||||
($writePeriod -
|
(int)(($writePeriod -
|
||||||
($time - microtime(true)) // Time it took me to write frames
|
(microtime(true) - $time) // Time it took me to write frames
|
||||||
) * 1000000
|
) * 1000000)
|
||||||
);
|
);
|
||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
$this->calls[$params['id']]['controller']->writeFrames(stream_get_contents($f, 960 * 2));
|
$this->calls[$params['id']]['controller']->writeFrames(stream_get_contents($f, 960 * 2));
|
||||||
|
Loading…
Reference in New Issue
Block a user