This commit is contained in:
Daniil Gentili 2017-06-27 09:16:19 +02:00
parent b1d501d009
commit 3160917b5e

View File

@ -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));