Better output, configured some based on CLI option of $COUNT_ONLY
This commit is contained in:
parent
074f2979e8
commit
598ca46506
1 changed files with 5 additions and 1 deletions
|
@ -78,8 +78,12 @@ MAIL: foreach my $dir (@msgDirs) {
|
|||
close MAILDIR;
|
||||
}
|
||||
|
||||
print "$countDeleted of $total were deleted\n";
|
||||
my $percent = ($countDeleted / $total) * 100.00;
|
||||
|
||||
print sprintf("%2f", $percent), " ($countDeleted/$total) ",
|
||||
(defined $COUNT_ONLY and $COUNT_ONLY ? " would be deleted.\n" :
|
||||
sprintf("were deleted.\nThis leaves %d in the folder.\n",
|
||||
$total - $countDeleted));
|
||||
###############################################################################
|
||||
#
|
||||
# Local variables:
|
||||
|
|
Loading…
Add table
Reference in a new issue