diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-02-21 14:33:12 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-02-21 14:33:12 +0000 |
commit | bd7311cff6cdaaa7817835d3815bc36e73b00e21 (patch) | |
tree | e597fd8f388fa098a876a842ee4dbf58316f72c7 /packages/lcdproc | |
parent | fa86e06f6faf95c24cd6ef6ca0c66bab27c256bb (diff) | |
download | pfsense-packages-bd7311cff6cdaaa7817835d3815bc36e73b00e21.tar.gz pfsense-packages-bd7311cff6cdaaa7817835d3815bc36e73b00e21.tar.bz2 pfsense-packages-bd7311cff6cdaaa7817835d3815bc36e73b00e21.zip |
Cleanup
Diffstat (limited to 'packages/lcdproc')
-rw-r--r-- | packages/lcdproc/lcdproc_client.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/packages/lcdproc/lcdproc_client.php b/packages/lcdproc/lcdproc_client.php index d13b5432..42c6708b 100644 --- a/packages/lcdproc/lcdproc_client.php +++ b/packages/lcdproc/lcdproc_client.php @@ -77,7 +77,6 @@ } else { $ip = "-"; } - // $ifstatus[] = htmlspecialchars($ifname) ." $online [{$ip}]"; $ifstatus[] = htmlspecialchars($ifname) ." $online"; } $status = " ". implode(", ", $ifstatus); @@ -116,15 +115,6 @@ $lastchange = ""; $svr = split("\|", $server); $monitorip = $svr[1]; - /* - $logstates = return_clog($slbd_logfile, $nentries, array("$monitorip", "marking"), true); - $logstates = $logstates[0]; - - if(stristr($logstates, $monitorip)) { - $date = preg_split("/[ ]+/" , $logstates); - $lastchange = "$date[0] $date[1] $year $date[2]"; - } - */ if(stristr($poolstatus, $monitorip)) { $online = "Online"; } else { @@ -258,7 +248,7 @@ } } - function get_ipsec_status() { + function get_ipsec_stats() { global $g, $config, $sad; $sad = array(); $sad = get_ipsec_tunnel_sad(); @@ -323,7 +313,6 @@ if(preg_match("/^huh?/", $cmd_output)) { lcdproc_notice("LCDd output: \"$cmd_output\". Executed \"$lcd_cmd\""); } - // sleep(1); } } @@ -486,7 +475,7 @@ case "scr_states": $states = get_pfstate(); $lcd_cmds[] = "widget_set $name title_wdgt 1 1 \"+ Traffic States\""; - $lcd_cmds[] = "widget_set $name text_wdgt 1 2 16 2 h 2 \"$states States\""; + $lcd_cmds[] = "widget_set $name text_wdgt 1 2 16 2 h 2 \"Curr/Max $states\""; break; case "scr_carp": $carp = get_carp_stats(); |