From 7ef31e6fbeaf951bf24de94d08f9d409224c9860 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 15 Sep 2021 15:28:21 +0200 Subject: [PATCH] revert leftover --- app/realtime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/realtime.php b/app/realtime.php index 76b5ca350f..70eacc0d4a 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -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. */