1
0
Fork 0
mirror of synced 2024-06-28 11:10:46 +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.
*/
Timer::tick(100, function () use ($stats, $getConsoleDb, $containerId, &$documentId) {
Timer::tick(5000, function () use ($stats, $getConsoleDb, $containerId, &$documentId) {
foreach ($stats as $projectId => $value) {
if (empty($value['connections']) && empty($value['messages'])) {
continue;
@ -169,7 +169,7 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats,
$attempts = 0;
$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.
*/