diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-04-25 11:00:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-04-25 11:00:28 +0200 |
commit | b011031f81fb357f728968d54ca3486b32790691 (patch) | |
tree | c9e14db8bcf00fa8bbadf93cd41b8db4263db851 | |
parent | c9a896f680e14d6992d3fb0c2c46a7b6ad2a7311 (diff) |
hashl list: Make size field longer (may be 1023.0k and such)
-rwxr-xr-x | bin/hashl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |