summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorErik Kristensen <ekristen@pfsense.org>2005-07-19 20:30:47 +0000
committerErik Kristensen <ekristen@pfsense.org>2005-07-19 20:30:47 +0000
commitcc6a859c7d0d627afda90cbcd657a703b2219b3b (patch)
tree0746f206ea549d3a65763a5fedecb973fdb75e48 /usr/local/www/index.php
parent0661a033fd83a44027ae6960a37cedbc8ffd8932 (diff)
downloadpfsense-cc6a859c7d0d627afda90cbcd657a703b2219b3b.zip
pfsense-cc6a859c7d0d627afda90cbcd657a703b2219b3b.tar.gz
fixed meter bars ... they update in IE and Firefox now
fixed top margin for the content area, it was too small, caused some issues in Firefox
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 16d8010..2dcaefe 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -350,19 +350,19 @@ While(!Connection_Aborted()) {
echo "document.forms[0].uptime.value = '" . get_uptime() . "';\n";
echo "document.forms[0].pfstate.value = '" . get_pfstate() . "';\n";
- echo "document.cpuwidtha.style.width='" . $cpuUsage . "';\n";
- echo "document.cpuwidthb.style.width='" . (100 - $cpuUsage) . "';\n";
+ echo "document.cpuwidtha.style.width='" . $cpuUsage . "px';\n";
+ echo "document.cpuwidthb.style.width='" . (100 - $cpuUsage) . "px';\n";
echo "document.forms[0].cpumeter.value = '" . $cpuUsage . "%';\n";
- echo "document.memwidtha.style.width='" . $memUsage . "';\n";
- echo "document.memwidthb.style.width='" . (100 - $memUsage) . "';\n";
+ echo "document.memwidtha.style.width='" . $memUsage . "px';\n";
+ echo "document.memwidthb.style.width='" . (100 - $memUsage) . "px';\n";
echo "document.forms[0].memusagemeter.value = '" . $memUsage . "%';\n";
if (file_exists("/etc/48xx")) {
/* Update temp. meter */
$Temp = rtrim(`/usr/local/sbin/env4801 | grep Temp |cut -c24-25`);
- echo "document.Tempwidtha.style.width='" . $Temp . "';\n";
- echo "document.Tempwidthb.style.width='" . (100 - $Temp) . "';\n";
+ echo "document.Tempwidtha.style.width='" . $Temp . "px';\n";
+ echo "document.Tempwidthb.style.width='" . (100 - $Temp) . "px';\n";
echo "document.forms[0].Tempmeter.value = '" . $Temp . "C';\n";
}
@@ -370,8 +370,8 @@ While(!Connection_Aborted()) {
exec("df -h | grep -w '/' | awk '{ print $5 }' | cut -d '%' -f 1", $dfout);
$diskusage = trim($dfout[0]);
- echo "document.Diskwidtha.style.width='" . $diskusage . "';\n";
- echo "document.Diskwidthb.style.width='" . (100 - $diskusage) . "';\n";
+ echo "document.Diskwidtha.style.width='" . $diskusage . "px';\n";
+ echo "document.Diskwidthb.style.width='" . (100 - $diskusage) . "px';\n";
echo "document.forms[0].Diskmeter.value = '" . $diskusage . "%';\n";
*/
OpenPOWER on IntegriCloud