X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=amavis-logwatch;h=1aab7871d2b7e83bb2cf067f5c11a693d65a499d;hb=02cf771776d2f1ad9d7872f3959e41a548adfab9;hp=89724973fde54016a9ca601c419c24b51b705cc2;hpb=79f37650aa72fe3feeed682ee2b79686ee2b6547;p=amavis-logwatch.git diff --git a/amavis-logwatch b/amavis-logwatch index 8972497..1aab787 100644 --- a/amavis-logwatch +++ b/amavis-logwatch @@ -1334,8 +1334,17 @@ sub print_summary_report (\@) { $$divisor == $Totals{$keyname} ? 100.00 : $Totals{$keyname} * 100 / $$divisor; } else { - push @{$lines[$cur_level]}, - sprintf "$fmt %-23s $extra\n", $total, $desc, commify ($Totals{$keyname}); + my $new_line; + if ($extra eq '') { + $new_line = sprintf("$fmt %-23s \n", $total, $desc); + } + else { + $new_line = sprintf("$fmt %-23s $extra\n", + $total, + $desc, + commify ($Totals{$keyname})); + } + push @{$lines[$cur_level]}, $new_line } } }