From 9c19544c61de01fa219a7a9576c58595b7c54934 Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 5 Dec 2022 12:43:31 +0200 Subject: [PATCH] updates --- app/workers/usage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/workers/usage.php b/app/workers/usage.php index d10005dea7..fda09de1b9 100644 --- a/app/workers/usage.php +++ b/app/workers/usage.php @@ -24,6 +24,9 @@ $server ->workerStart() ->action(function () use (&$stack) { Timer::tick(30000, function () use (&$stack) { + $hourly = date('d-m-Y H:00', time()); + $daily = date('d-m-Y 00:00', time()); + $chunk = array_slice($stack, 0, count($stack)); array_splice($stack, 0, count($stack)); var_dump($chunk);