23 lines
934 B
Diff
23 lines
934 B
Diff
|
Index: dd_rhelp-0.0.6/src/dd_rhelp-sh
|
||
|
===================================================================
|
||
|
--- dd_rhelp-0.0.6.orig/src/dd_rhelp-sh
|
||
|
+++ dd_rhelp-0.0.6/src/dd_rhelp-sh
|
||
|
@@ -190,7 +190,7 @@ fi
|
||
|
|
||
|
# regexp for parsing the log file.
|
||
|
|
||
|
-string="^Summary for $infile -> $outfile:"
|
||
|
+string="^dd_rescue: (info): Summary for $infile -> $outfile:"
|
||
|
infoline="^dd_rescue: (info):"
|
||
|
eofstring="$infoline .* ([0-9]\+\.[0-9]k): EOF.*\$"
|
||
|
nb_stars=$[ $bar_lines * $COLUMNS ] # nb of char to display progress bar...
|
||
|
@@ -753,7 +753,7 @@ function process_log()
|
||
|
test -z data && return 0
|
||
|
|
||
|
[ "$DEBUG" == "on" ] && echo -n "- cleaning data ["
|
||
|
- data=$(echo "$data" | "$GREP" -v "xferd: \+0.0k$")
|
||
|
+ data=$(echo "$data" | "$GREP" -v "xferd: \+0.0k$" | "$GREP" -v "$string")
|
||
|
[ "$DEBUG" == "on" ] && echo -n "."
|
||
|
data=$(echo "$data" | "$GREP" "$infoline" -A 1 | "${CUT}" -c 12-)
|
||
|
[ "$DEBUG" == "on" ] && echo -n "."
|