summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-08-19 23:20:06 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-08-19 23:20:06 +0200
commit46d56664eb030587cc4e5d62fc8b8c315d440243 (patch)
tree9954ee2a5850dd630eb770b1210457957ae117e9
parentc3ba72a8a3e0bcaae29e6430279381811299bf37 (diff)
hashl info: also display number of files / ignored hashes
-rw-r--r--lib/App/Hashl.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/App/Hashl.pm b/lib/App/Hashl.pm
index f0a93ce..8cd5f3c 100644
--- a/lib/App/Hashl.pm
+++ b/lib/App/Hashl.pm
@@ -115,8 +115,11 @@ sub db_info {
my ($self) = @_;
return sprintf(
- "Database created by hashl v%s\n" . "Read size: %d bytes (%s)\n",
+ "Database created by hashl v%s\n" . "Read size: %d bytes (%s)\n" .
+ "contains: %d file%s and %d ignored hash%s\n",
$self->db_version, $self->read_size, $self->si_size( $self->read_size ),
+ scalar($self->files), (scalar($self->files) == 1 ? q{} : 's' ),
+ scalar($self->ignored), (scalar($self->ignored) == 1 ? q{} : 'es' ),
);
}