diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-11 20:28:20 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-11 20:28:20 +0000 |
commit | ce05c37ac8dcebdeda7aae18e24a006b893021fd (patch) | |
tree | f891aa778257a50e2694b73ae9f423fac62d7291 /packages/spamd_gather_stats.php | |
parent | 7c29d06ad1d7a8a7c8131fc5b4d7bc47189b93f9 (diff) | |
download | pfsense-packages-ce05c37ac8dcebdeda7aae18e24a006b893021fd.tar.gz pfsense-packages-ce05c37ac8dcebdeda7aae18e24a006b893021fd.tar.bz2 pfsense-packages-ce05c37ac8dcebdeda7aae18e24a006b893021fd.zip |
echo N:$CONNECTIONCOUNT:$AVERAGETIME
Diffstat (limited to 'packages/spamd_gather_stats.php')
-rw-r--r-- | packages/spamd_gather_stats.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/spamd_gather_stats.php b/packages/spamd_gather_stats.php index b56e9dca..14728900 100644 --- a/packages/spamd_gather_stats.php +++ b/packages/spamd_gather_stats.php @@ -28,7 +28,6 @@ foreach($log_array as $la) { $connect_time = $matches[2]; $connections[$ip] = true; $connect_times[$ip] = $connect_time; - //echo "Connect time: $connect_time\n"; } } @@ -36,7 +35,6 @@ $open_connections = 0; $average_connect_time = 0; $total_connections = count($connect_times); -//echo "Total connections: $total_connections\n"; /* loop through, how many connections are open */ foreach($connections as $c) { @@ -49,6 +47,7 @@ foreach($connect_times as $c) { $average_connect_time = $average_connect_time + $c; } +echo "N:"; echo $open_connections; echo ":"; echo round(($average_connect_time / $total_connections)); |