Correct percentage calculation.
This commit is contained in:
parent
73e8444e11
commit
41126968f5
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ print sprintf("%.2f", $percent), "% ($countDeleted/$total) ",
|
||||||
sprintf("were deleted.\nThis leaves %d in the folder.\n",
|
sprintf("were deleted.\nThis leaves %d in the folder.\n",
|
||||||
$total - $countDeleted));
|
$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) ",
|
print sprintf("Of those matching the date range, %.2f", $percentInDate), "% ($countDeleted/$totalInDate) ",
|
||||||
((defined $COUNT_ONLY and $COUNT_ONLY) ?
|
((defined $COUNT_ONLY and $COUNT_ONLY) ?
|
||||||
|
|
Loading…
Add table
Reference in a new issue