mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Update systemLoadPercentage()
This commit is contained in:
parent
ab8648c3e5
commit
dbc3ff4950
@ -43,6 +43,7 @@ class System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function systemLoadPercentage() {
|
public function systemLoadPercentage() {
|
||||||
return floor(($this->loadAvg1Min() * 100) / $this->processorCount());
|
return intval(($this->loadAvg1Min() * 100) / $this->processorCount());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user