From 4df89c1057213ce792e6bb8337fb3d0310d74529 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sun, 19 Dec 2010 15:07:31 +0100
Subject: hashl: Option to change read_size

---
 bin/hashl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'bin')

diff --git a/bin/hashl b/bin/hashl
index 2091d3f..d0ecddf 100755
--- a/bin/hashl
+++ b/bin/hashl
@@ -27,7 +27,8 @@ my $VERSION = '0.1';
 my $db;
 
 GetOptions(
-	'd|database=s' => \$db_file,
+	'd|database=s'  => \$db_file,
+	's|read-size=d' => sub { $read_size = $_[0] * 1024 },
 );
 
 if (substr($db_file, 0, 1) ne '/') {
-- 
cgit v1.2.3