mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Round load display to precision two
This commit is contained in:
@@ -65,6 +65,9 @@
|
||||
|
||||
// Get load
|
||||
$loaddata = sys_getloadavg();
|
||||
foreach ($loaddata as $key => $value) {
|
||||
$loaddata[$key] = round($value, 2);
|
||||
}
|
||||
// Get number of processing units available to PHP
|
||||
// (may be less than the number of online processors)
|
||||
$nproc = shell_exec('nproc');
|
||||
|
||||
Reference in New Issue
Block a user