summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-03 20:28:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-03 20:28:25 +0100
commitcda9838961775441086c57b67d0ec8655a3aa58b (patch)
tree783741f900f8dc74d72ed39182cf6015ac62dc22 /bin
parent29d4decc90f14d7d36aa726a0e073243f240c0d9 (diff)
hashl list: Print header with version/readsize info
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hashl6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/hashl b/bin/hashl
index 85302fa..985a263 100755
--- a/bin/hashl
+++ b/bin/hashl
@@ -318,6 +318,12 @@ sub cmd_info {
}
sub cmd_list {
+ printf(
+ "# hashl v%s Read Size %d bytes (%d KiB)\n",
+ $VERSION,
+ $db->{'config'}->{'read_size'},
+ $db->{'config'}->{'read_size'} / 1024,
+ );
for my $name (sort keys %{$db->{'files'}}) {
my $file = $db->{'files'}->{$name};
printf("%s %s\n", $file->{'hash'}, $name);