Correct percentage calculation.

This commit is contained in:
Bradley M. Kuhn 2014-07-16 08:26:33 -04:00
parent 73e8444e11
commit 41126968f5

View file

@ -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) ?