From 420f9a1c07dac6ac0b7d7a3a4cfb3bd9891790a9 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 2 May 2014 21:20:39 +0200 Subject: [PATCH] cpu usage fix --- webui/controller/health/worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/controller/health/worker.php b/webui/controller/health/worker.php index 7491a75d..ac6f4d58 100644 --- a/webui/controller/health/worker.php +++ b/webui/controller/health/worker.php @@ -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);