revised cpu stat collection

This commit is contained in:
SJ
2014-05-02 14:40:39 +02:00
parent 54bd64387a
commit a4e0042e57
4 changed files with 3 additions and 4 deletions

View File

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