优化实时流量统计性能

This commit is contained in:
root
2023-10-12 14:59:23 +09:00
parent 3f3de69389
commit 30e2f156a3
2 changed files with 40 additions and 31 deletions

View File

@ -178,10 +178,11 @@ class UserService
$u = $data[$userId][0];
$d = $data[$userId][1];
StatServerJob::dispatch($u, $d, $server, $protocol, 'd');
StatUserJob::dispatch($u, $d, $userId, $server, $protocol, 'd');
//StatUserJob::dispatch($u, $d, $userId, $server, $protocol, 'd');
TrafficFetchJob::dispatch($u, $d, $userId, $server, $protocol);
//$statService->statServer($server['id'], $protocol, $u, $d);
//$statService->statUser($server['rate'], $userId, $u, $d);
}
StatUserJob::dispatch($data, $server, $protocol, 'd');
}
}