From c410cf554603cd3640a36ef5beabb87b7d59de5e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 2 Mar 2005 02:22:49 +0000 Subject: Use connection_aborted to detect if client still has index.php open. Use a 3 second sleep loop to DYNAMICALLY update the cpu status meter. Who needs SVG? --- usr/local/www/index.php | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'usr') diff --git a/usr/local/www/index.php b/usr/local/www/index.php index fa3ed5e..24154b2 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -215,25 +215,29 @@ echo " \n"; + echo "document.cpuwidtha.style.width='" . $cpuUsage . "';\n"; + echo "document.cpuwidthb.style.width='" . (100 - $cpuUsage) . "';\n"; + echo "document.forms[0].cpumeter.value = '" . $cpuUsage . "%';\n"; + echo "\n"; -echo "\n"; +} ?> -- cgit v1.1