From 249e3443a9ca10f70aef42fd0bd0a97c03d20fdd Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 9 Nov 2016 17:07:05 +0100 Subject: [PATCH] Display CPU and I/O utilization of the last one, five, and 15 minute periods (load). --- header.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/header.php b/header.php index bc31aa9e..d9e809a6 100644 --- a/header.php +++ b/header.php @@ -11,6 +11,9 @@ $cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`))"; $output = shell_exec($cmd); $output = str_replace(array("\r\n","\r","\n"),"", $output); + + // Get load + $loaddata = sys_getloadavg(); ?> @@ -154,6 +157,18 @@ echo ' Temp: ' . $output . ''; } ?> +
+ Load:  ' . $loaddata[0] . '  ' . $loaddata[1] . '  '. $loaddata[2] . ''; + ?>