You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/09/26 13:43:00 UTC
svn commit: r579611 - /spamassassin/trunk/masses/mass-check
Author: jm
Date: Wed Sep 26 04:42:58 2007
New Revision: 579611
URL: http://svn.apache.org/viewvc?rev=579611&view=rev
Log:
add a new option to log the network utilization figures
Modified:
spamassassin/trunk/masses/mass-check
Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/mass-check?rev=579611&r1=579610&r2=579611&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Wed Sep 26 04:42:58 2007
@@ -73,6 +73,7 @@
--cs_ssl use SSL to encrypt on-the-wire client-server traffic
(requires IO::Socket::SSL, see
http://wiki.apache.org/spamassassin/SslMassCheck for more)
+ --cs_verbose Log network bandwidth utilization figures
log options
-o write all logs to stdout
@@ -135,7 +136,7 @@
$total_messages $statusevery $opt_cachedir $opt_scanprob
$opt_client $opt_cs_max $opt_cs_timeout $opt_cs_paths_only
$opt_server %postdata %real $svn_revision
- $opt_cs_ssl $opt_run_post_scan
+ $opt_cs_ssl $opt_run_post_scan $opt_cs_verbose
$tmpfd %reuse %orig_conf %reuse_conf $reuse_rules_loaded_p);
use FindBin;
@@ -187,7 +188,7 @@
"deencap=s", "logmem", "learn=i", "reuse", "lint", "cache",
"cachedir=s", "noisy", "scanprob=f",
"server=s", "cs_max=i", "cs_timeout=i",
- "cs_paths_only", "client=s", "cs_ssl",
+ "cs_paths_only", "client=s", "cs_ssl", "cs_verbose",
"before=s" => \&deal_with_before_after,
"after=s" => \&deal_with_before_after,
'cf=s' => \@{$opt_cf},
@@ -463,7 +464,7 @@
$spamtest->finish();
-if (($opt_client || $opt_server) && $opt_noisy) {
+if (($opt_client || $opt_server) && $opt_cs_verbose) {
warn "network I/O: sent=$sent_bytes, received=$rcvd_bytes\n";
}