From ac1f02c3a02f2e14276787094f1b70d975363411 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 17 May 2019 16:15:46 -0600 Subject: [PATCH] Include block_pair size in report --- .bin/Scripts/functions/ddrescue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/ddrescue.py b/.bin/Scripts/functions/ddrescue.py index 794874b0..0be07ddd 100644 --- a/.bin/Scripts/functions/ddrescue.py +++ b/.bin/Scripts/functions/ddrescue.py @@ -489,8 +489,9 @@ class RecoveryState(): percent = (b_pair.rescued / b_pair.size) * 100 except ZeroDivisionError: percent = 0 - report.append('{} rescued: {:0.2f}% error size: {}'.format( + report.append('{} ({}) rescued: {:0.2f}% error size: {}'.format( b_pair.source.path, + human_readable_size(b_pair.source.size, decimals=1), percent, human_readable_size(b_pair.size-b_pair.rescued, decimals=2), ))