diff --git a/app/system/resources/dashboard/system_status.php b/app/system/resources/dashboard/system_status.php index cb1a518ec1..ab26c0b6ab 100644 --- a/app/system/resources/dashboard/system_status.php +++ b/app/system/resources/dashboard/system_status.php @@ -25,19 +25,6 @@ $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; - //cpu usage - if (stristr(PHP_OS, 'Linux')) { - $result = shell_exec('ps -A -o pcpu'); - $percent_cpu = 0; - foreach (explode("\n", $result) as $value) { - if (is_numeric($value)) { $percent_cpu = $percent_cpu + $value; } - } - $result = trim(shell_exec("grep -P '^processor' /proc/cpuinfo")); - $cores = count(explode("\n", $result)); - if ($percent_cpu > 1) { $percent_cpu = $percent_cpu / $cores; } - $percent_cpu = round($percent_cpu, 2); - } - //disk usage if (PHP_OS == 'FreeBSD' || PHP_OS == 'Linux') { $tmp = shell_exec("df /home 2>&1"); @@ -49,86 +36,28 @@ } if ($percent_disk_usage != '') { - //add half doughnut charts + //add half doughnut chart ?>
| ".$text['label-item']." | \n"; @@ -245,17 +174,6 @@ } } - //cpu usage - if (stristr(PHP_OS, 'Linux')) { - if ($percent_cpu != '') { - echo "|
|---|---|
| ".$text['label-processor_usage']." | \n"; - echo "".$percent_cpu."% | \n"; - echo "