1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00

revert leftover

This commit is contained in:
Torsten Dittmann 2021-09-15 15:28:21 +02:00
parent a2315821ca
commit 7ef31e6fbe

View file

@ -102,7 +102,7 @@ $server->onStart(function () use ($stats, $register, $containerId, &$documentId)
/** /**
* Save current connections to the Database every 5 seconds. * Save current connections to the Database every 5 seconds.
*/ */
Timer::tick(100, function () use ($stats, $getConsoleDb, $containerId, &$documentId) { Timer::tick(5000, function () use ($stats, $getConsoleDb, $containerId, &$documentId) {
foreach ($stats as $projectId => $value) { foreach ($stats as $projectId => $value) {
if (empty($value['connections']) && empty($value['messages'])) { if (empty($value['connections']) && empty($value['messages'])) {
continue; continue;
@ -169,7 +169,7 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats,
$attempts = 0; $attempts = 0;
$start = time(); $start = time();
Timer::tick(100, function () use ($server, $register, $realtime, $stats) { Timer::tick(5000, function () use ($server, $register, $realtime, $stats) {
/** /**
* Sending current connections to project channels on the console project every 5 seconds. * Sending current connections to project channels on the console project every 5 seconds.
*/ */