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 2006/10/12 13:29:50 UTC
svn commit: r463204 - /spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
Author: jm
Date: Thu Oct 12 04:29:49 2006
New Revision: 463204
URL: http://svn.apache.org/viewvc?view=rev&rev=463204
Log:
round up 'N of N messages' tooltips
Modified:
spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
Modified: spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi?view=diff&rev=463204&r1=463203&r2=463204
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi (original)
+++ spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi Thu Oct 12 04:29:49 2006
@@ -1121,7 +1121,7 @@
}
my $outof = ($isspam ? $obj->{nspam} : $obj->{nham});
- my $count = int (($percent/100.0) * $outof);
+ my $count = int ((($percent/100.0) * $outof) + 0.99); # round up
return qq{
$count\ of\ $outof\ messages
};