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/03/10 00:47:55 UTC

svn commit: r516606 - /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm

Author: jm
Date: Fri Mar  9 15:47:54 2007
New Revision: 516606

URL: http://svn.apache.org/viewvc?view=rev&rev=516606
Log:
sa-compile now outputs a status line after extracting base strings

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm?view=diff&rev=516606&r1=516605&r2=516606
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm Fri Mar  9 15:47:54 2007
@@ -103,6 +103,7 @@
   $self->{main} = $conf->{main};	# for use in extract_hints()
 
   dbg("zoom: base extraction start for type $ruletype");
+  my $start = time;
 
   # attempt to find good "base strings" (simplified regexp subsets) for each
   # regexp.  We try looking at the regexp from both ends, since there
@@ -268,7 +269,9 @@
     $conf->{base_string}->{$ruletype}->{$base} = $key;
   }
 
-  info ("zoom: base extraction complete for $ruletype: yes=$yes no=$no\n");
+  my $elapsed = time - $start;
+  info ("zoom: base extraction for $ruletype: ".
+            "yes=$yes, no=$no, took $elapsed seconds\n");
 }
 
 ###########################################################################