mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update systemLoadPercentage()
This commit is contained in:
parent
ab8648c3e5
commit
dbc3ff4950
1 changed files with 3 additions and 2 deletions
|
@ -43,6 +43,7 @@ class System {
|
|||
}
|
||||
|
||||
public function systemLoadPercentage() {
|
||||
return floor(($this->loadAvg1Min() * 100) / $this->processorCount());
|
||||
return intval(($this->loadAvg1Min() * 100) / $this->processorCount());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue