Update perftool.php

This commit is contained in:
Namhyeon Go 2020-02-19 14:57:35 +09:00 committed by GitHub
parent 491116531f
commit 11023c3cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ if(!is_fn("get_cpu_idle")) {
$idle = false;
if(loadHelper("exectool")) {
$idle = floatval(trim(exec_command("top -n 1 | grep -i Cpu\(s\) | awk '{print \$8}'")));
$idle = floatval(trim(exec_command("top -n 1 -b | grep -i Cpu\(s\) | awk '{print \$8}'")));
}
return $idle;