From 8c4d2c57fd183d57ea618deb8d559bf77b7d9df1 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 21 Feb 2008 19:45:59 +0000 Subject: Hopefully fix uptime screen and the syslog spam. --- packages/lcdproc/lcdproc_client.php | 4 ++-- 1 file 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]"; -- cgit v1.2.3