From 51fb86f5506b5ab648d10d96cf942c12607bfd83 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 21 Sep 2006 01:41:25 +0000 Subject: * Remove unused variable $do_not_display * Do not add entry if we cannot deterimine the protocol --- usr/local/www/diag_logs_filter.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr/local/www/diag_logs_filter.php') diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 0e7904f..092f6f2 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -91,8 +91,6 @@ function conv_clog($logfile, $tail = 50) { $beforeupper = $logent; $logent = strtoupper($logent); - $do_not_display = false; - if(stristr(strtoupper($logent), "UDP") == true) $flent['proto'] = "UDP"; else if(stristr(strtoupper($logent), "TCP") == true) @@ -116,7 +114,7 @@ function conv_clog($logfile, $tail = 50) { else if(stristr($logent, "sack") == true) $flent['proto'] = "TCP"; else - $do_not_display = true; + continue; $flent['time'] = $log_split[1]; $flent['act'] = $log_split[3]; -- cgit v1.1