summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-04-25 11:00:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-04-25 11:00:28 +0200
commitb011031f81fb357f728968d54ca3486b32790691 (patch)
treec9e14db8bcf00fa8bbadf93cd41b8db4263db851 /bin
parentc9a896f680e14d6992d3fb0c2c46a7b6ad2a7311 (diff)
hashl list: Make size field longer (may be 1023.0k and such)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hashl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hashl b/bin/hashl
index 4c0ebd4..5dad044 100755
--- a/bin/hashl
+++ b/bin/hashl
@@ -81,7 +81,7 @@ sub si_size {
$bytes /= 1024;
shift @post;
}
- return sprintf("%5.1f%s", $bytes, $post[0]);
+ return sprintf("%6.1f%s", $bytes, $post[0]);
}
sub drop_deleted {
@@ -364,7 +364,7 @@ sub cmd_list {
for my $name (sort keys %{$db->{'files'}}) {
my $file = $db->{'files'}->{$name};
printf(
- "%s %-6s %s\n",
+ "%s %-7s %s\n",
$file->{'hash'},
si_size($file->{'size'}),
$name