From b86ee442d89b95e5a0390e566d683de371fd0b72 Mon Sep 17 00:00:00 2001
From: Thiemo Nagel <thiemo.nagel@gmail.com>
Date: Mon, 16 Sep 2013 18:00:19 +0200
Subject: [PATCH] blockdev-wipe: Reduce progress indicator granularity to
 1/1000

---
 blockdev-wipe/blockdev-wipe.c |    2 +-
 lib/crypto-base.sh            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/blockdev-wipe/blockdev-wipe.c b/blockdev-wipe/blockdev-wipe.c
index dfced12..1503421 100644
--- a/blockdev-wipe/blockdev-wipe.c
+++ b/blockdev-wipe/blockdev-wipe.c
@@ -30,7 +30,7 @@
 /* Progress indicator to output */
 # define PROGRESS_INDICATOR "*\n"
 /* How many progress indicators to output in total */
-#define PROGRESS_PARTS 65536
+#define PROGRESS_PARTS 1000
 /* How many bytes to write at a time (default) */
 #define DEFAULT_WSIZE 4096
 /* Debugging output */
diff --git a/lib/crypto-base.sh b/lib/crypto-base.sh
index ba90169..45ee82c 100644
--- a/lib/crypto-base.sh
+++ b/lib/crypto-base.sh
@@ -292,7 +292,7 @@ crypto_do_wipe () {
 
 	cancelled=0
 	db_capb backup align progresscancel
-	db_progress START 0 65536 $template
+	db_progress START 0 1000 $template
 	while read x <&9; do
 		db_progress STEP 1
 		if [ $? -eq 30 ]; then
-- 
1.7.10.4

