X-Git-Url: http://gitweb.michael.orlitzky.com/?p=postfix-logwatch.git;a=blobdiff_plain;f=postfix-logwatch;fp=postfix-logwatch;h=92ed62138fe0d37ab30268f40c8e5ccbc3ee67d3;hp=1e58a95c3366908284c2012b2d15ffaa6ae36f95;hb=6afb8e258a5a2a0e7c72c4c25927dde9d1e2ad89;hpb=84f9fb47783e63757f27e5990ee606ff01e079a9 diff --git a/postfix-logwatch b/postfix-logwatch index 1e58a95..92ed621 100644 --- a/postfix-logwatch +++ b/postfix-logwatch @@ -1378,8 +1378,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 } } }