From 41126968f5aea266e5af788912d8890c9007bd68 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 16 Jul 2014 08:26:33 -0400 Subject: [PATCH] Correct percentage calculation. --- remove-spam-high-confidence-maildir.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove-spam-high-confidence-maildir.plx b/remove-spam-high-confidence-maildir.plx index b78960f..645d499 100755 --- a/remove-spam-high-confidence-maildir.plx +++ b/remove-spam-high-confidence-maildir.plx @@ -124,7 +124,7 @@ print sprintf("%.2f", $percent), "% ($countDeleted/$total) ", sprintf("were deleted.\nThis leaves %d in the folder.\n", $total - $countDeleted)); -my $percentInDate = ($totalInDate / $total) * 100.00; +my $percentInDate = ($totalInDate / $totalInDate) * 100.00; print sprintf("Of those matching the date range, %.2f", $percentInDate), "% ($countDeleted/$totalInDate) ", ((defined $COUNT_ONLY and $COUNT_ONLY) ?