sysCache->get(Marco::SERVER_STATS); if ($data) { $concurrency = 0; foreach ($data['worker'] as $id => $worker) { if (!empty($worker['coroutine']['total'])) { $concurrency += $worker['coroutine']['total']; } } $data['running']['concurrency'] = $concurrency; $data['sys_cache'] = getInstance()->sysCache->info(); $this->outputJson($data); } else { $data = []; $data['sys_cache'] = getInstance()->sysCache->info(); $this->outputJson($data); } } }