aboutsummaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-05-27 01:14:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-05-27 01:14:08 +0300
commit913de59c1d0bf5d19731323b6d8aaf72b0b07645 (patch)
treeee8ead7e8c577070ec6d4046323f7e155e3c47fe /lib/App
parent8511d64e0627fe7235c065d9c3af30f1bff7355c (diff)
downloadglacier-913de59c1d0bf5d19731323b6d8aaf72b0b07645.tar.gz
glacier-913de59c1d0bf5d19731323b6d8aaf72b0b07645.tar.bz2
Minor formatting fix
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/Glacier/Command/ListVault.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/Glacier/Command/ListVault.pm b/lib/App/Glacier/Command/ListVault.pm
index cfe9e41..2752683 100644
--- a/lib/App/Glacier/Command/ListVault.pm
+++ b/lib/App/Glacier/Command/ListVault.pm
@@ -245,7 +245,8 @@ sub format_size {
$suf = shift @suffixes;
}
}
- return sprintf("%*u%s", ($width || 10) - length($suf), int($size), $suf);
+ my $l = ($width || 10);
+ return sprintf("%*.*s", $l, $l, int($size) . $suf);
}
sub show_vault {

Return to:

Send suggestions and report system problems to the System administrator.