This commit is contained in:
2021-01-28 11:27:53 +08:00
parent f8c79b148e
commit fb0d3a4b9b
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class Biomonitoring extends Process
*/
public function onHandler(\Swoole\Process $process): void
{
$server = Snowflake::app()->getService();
$server = Snowflake::app()->getSwoole();
Timer::tick(1000, function () use ($server) {
clearstatcache();
if (($size = filesize($server->setting['log_file'])) > 1024000000) {