git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8f1057
)
df: Fix alignment of columns.
author
Richard Jones
<rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 21:53:23 +0000
(22:53 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 21:53:23 +0000
(22:53 +0100)
df/virt-df.pl
patch
|
blob
|
history
diff --git
a/df/virt-df.pl
b/df/virt-df.pl
index
4cac896
..
25fd6a8
100755
(executable)
--- a/
df/virt-df.pl
+++ b/
df/virt-df.pl
@@
-287,7
+287,7
@@
sub print_cols
my $label = sprintf "%s:%s", $_[0], $_[1];
printf ("%-36s", $label);
- print "\n"," "x3
2
if length ($label) > 36;
+ print "\n"," "x3
6
if length ($label) > 36;
my $percent = sprintf "%3.1f%%", $_[5];
printf ("%10s %10s %10s %5s\n", $_[2], $_[3], $_[4], $percent);