Fix output to properly display.

This commit is contained in:
Bradley M. Kuhn 2014-03-25 11:20:46 -04:00
parent ea2d5b61ab
commit 3a291f7ac7

View file

@ -118,9 +118,10 @@ MAIL: while (my $file = readdir MAILDIR) {
my $percent = ($countDeleted / $total) * 100.00;
print sprintf("%.2f", $percent), "% ($countDeleted/$total) ",
(defined $COUNT_ONLY and $COUNT_ONLY ?
((defined $COUNT_ONLY and $COUNT_ONLY) ?
" would be deleted.\n" :
sprintf("were deleted.\nThis leaves %d in the folder.\n",
$total - $countDeleted) : " would be deleted.\n");
$total - $countDeleted));
###############################################################################
#
# Local variables: