From 107ae02887da9cf978e179b7fc852fd8977f113a Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 28 Feb 2017 23:41:03 +0100 Subject: [PATCH] Round load display to precision two --- scripts/pi-hole/php/header.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php index c941ddac..366a8d03 100644 --- a/scripts/pi-hole/php/header.php +++ b/scripts/pi-hole/php/header.php @@ -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');