mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:10:13 +01:00
cpu usage fix
This commit is contained in:
parent
a4e0042e57
commit
420f9a1c07
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user