mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update systemLoadPercentage()
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user