提交 d5749023 编写于 作者: wayhood's avatar wayhood

fix

上级 8f92f271
......@@ -22,9 +22,9 @@ class ServerMonitorService
if ($cache == '') {
$cache = trim(shell_exec("lscpu | grep L2 | awk '{print \$NF}'"));
}
}
if ($cache != '') {
$cache = [0, intval(str_replace(['K', 'B'], '', strtoupper($cache)))];
if ($cache != '') {
$cache = [0, intval(str_replace(['K', 'B'], '', strtoupper($cache)))];
}
}
} else {
$cpuUsage = shell_exec('top -l 1 | head -n 10 | grep CPU');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册