On Wed, 27 Jul 2016 20:58:01 +0200
Willi Mann <wi...@debian.org> wrote:
Willi,
Thanks for the instructions for how to apply the patch, as it
was my first time. It was just missing an extra line break, which I added in
your
patch.
thanks for the patch,
nayr
--- /usr/share/logwatch/scripts/services/amavis 2016-03-30 23:32:34.000000000 +0200
+++ amavis 2016-07-27 20:53:23.913506745 +0200
@@ -1334,8 +1334,11 @@
$$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 $out = sprintf "$fmt %-23s", $total, $desc;
+ if ($extra) {
+ $out .= sprintf " $extra\n", commify ($Totals{$keyname});
+ }
+ push @{$lines[$cur_level]}, $out;
}
}
}