You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/01/14 06:46:05 UTC
svn commit: rev 6161 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin
Author: felicity
Date: Tue Jan 13 21:46:04 2004
New Revision: 6161
Modified:
incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore.pm
Log:
per bug 2822, added a section around the bayes expiry debug statements to completely ignore expiry
histogram output if debug is disabled. this will cause a for() loop to be skipped. :)
Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore.pm (original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore.pm Tue Jan 13 21:46:04 2004
@@ -647,10 +647,13 @@
}
}
- dbg("bayes: atime\ttoken reduction");
- dbg("bayes: ========\t===============");
- for( my $i = 1; $i<=$max_expire_mult; $i<<=1 ) {
- dbg("bayes: ".$start*$i."\t".(exists $delta{$i} ? $delta{$i} : 0));
+ # This will skip the for loop if debugging isn't enabled ...
+ if ( $Mail::SpamAssassin::DEBUG->{'enabled'} ) {
+ dbg("bayes: atime\ttoken reduction");
+ dbg("bayes: ========\t===============");
+ for( my $i = 1; $i<=$max_expire_mult; $i<<=1 ) {
+ dbg("bayes: ".$start*$i."\t".(exists $delta{$i} ? $delta{$i} : 0));
+ }
}
# Now figure out which max_expire_mult value gives the closest results to goal_reduction, without