diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-02-21 19:45:59 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-02-21 19:45:59 +0000 |
commit | 8c4d2c57fd183d57ea618deb8d559bf77b7d9df1 (patch) | |
tree | fc69e2f5ff5d5b93fe526f5dc9856cf55144558b /packages/lcdproc/lcdproc_client.php | |
parent | 7741922a3e657bdf67c0a326df48b1f461db901e (diff) | |
download | pfsense-packages-8c4d2c57fd183d57ea618deb8d559bf77b7d9df1.tar.gz pfsense-packages-8c4d2c57fd183d57ea618deb8d559bf77b7d9df1.tar.bz2 pfsense-packages-8c4d2c57fd183d57ea618deb8d559bf77b7d9df1.zip |
Hopefully fix uptime screen and the syslog spam.
Diffstat (limited to 'packages/lcdproc/lcdproc_client.php')
-rw-r--r-- | packages/lcdproc/lcdproc_client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/lcdproc/lcdproc_client.php b/packages/lcdproc/lcdproc_client.php index 7f55eb6e..618a2ab0 100644 --- a/packages/lcdproc/lcdproc_client.php +++ b/packages/lcdproc/lcdproc_client.php @@ -36,7 +36,7 @@ exec("/usr/bin/uptime", $output, $ret); if(stristr($output[0], "day")) { $temp = explode(" ", $output[0]); - $status = "$temp[2] $temp[3] $temp[4] $temp[5] $temp[6] $temp[7] $temp[8] ". substr($temp[9], 0, -1); + $status = "$temp[2] $temp[3] $temp[4] $temp[5] $temp[6] $temp[7] ". substr($temp[8], 0, -1); } else { $temp = explode(" ", $output[0]); $status = "$temp[2] $temp[3] $temp[4] $temp[5] $temp[6] ". substr($temp[7], 0, -1); @@ -48,7 +48,7 @@ exec("/usr/bin/uptime", $output, $ret); if(stristr($output[0], "day")) { $temp = explode(" ", $output[0]); - $status = "$temp[12] $temp[13] $temp[14]"; + $status = "$temp[11] $temp[12] $temp[13]"; } else { $temp = explode(" ", $output[0]); $status = "$temp[10] $temp[11] $temp[12]"; |