Round load display to precision two

This commit is contained in:
DL6ER
2017-02-28 23:41:03 +01:00
parent 3b5578321a
commit 107ae02887

View File

@@ -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');