diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bench.pl.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/bench.pl.in b/etc/bench.pl.in index 481f3dda..eadfa4b3 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -696,9 +696,15 @@ sub bench_grammar ($%) # Display the sizes. print "Sizes:\n"; + my $width = 10; for my $bench (keys %size) { - printf "%10s: %10dkB\n", $bench, int ($size{$bench} / 1024); + $width = length $bench + if $width < length $bench; + } + for my $bench (keys %size) + { + printf "%${width}s: %5dkB\n", $bench, int ($size{$bench} / 1024); } } |