cpu usage fix

This commit is contained in:
SJ 2014-05-02 21:20:39 +02:00
parent a4e0042e57
commit 420f9a1c07

View File

@ -50,7 +50,7 @@ class ControllerHealthWorker extends Controller {
list ($this->data['uptime'], $this->data['cpuload']) = $this->model_health_health->uptime();
$x = system(CPU_USAGE_COMMAND);
$x = exec(CPU_USAGE_COMMAND);
$this->data['cpuinfo'] = 100 - (int)$x;
$this->data['quarantinereportinfo'] = @file_get_contents(DAILY_QUARANTINE_REPORT_STAT);