From 9282ba931deb322c5324ab4176f0fa82b31422a9 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <art1@andreas-romeyke.de>
Date: Mon, 19 Oct 2020 12:27:28 +0200
Subject: [PATCH] - more descriptive progressbar

---
 deep_fixitycheck.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deep_fixitycheck.pl b/deep_fixitycheck.pl
index 20f7ab7..9d0da55 100644
--- a/deep_fixitycheck.pl
+++ b/deep_fixitycheck.pl
@@ -77,7 +77,7 @@ sub searching_ie_files ($$) {
       $relpath =~ s{^\Q$dir\E/?}{};
       my $depth = File::Spec->splitdir($relpath);
       if ($depth <= 2) {
-        print $progressbar->report("find IE files:        %40b  running: %L ETA: %E (count=$dircount)          \r", ++$dircount);
+        print $progressbar->report("find IE files:        %40b  running: %L ETA: %E ($dircount/$first_two_levels_of_dirs dirs)          \r", ++$dircount);
       }
     }
     return;
@@ -352,7 +352,7 @@ if (defined $search_dir && -d "$search_dir") {
     while ( <$fh_unsorted_file>) { # scan each IE
       $stat->{IEs}++;
       chomp;
-      print $progressbar->report("parse IE files:       %40b  running: %L ETA: %E (count=$count)         \r", ++$count);
+      print $progressbar->report("parse IE files:       %40b  running: %L ETA: %E ($count/$cnt_unsorted_files IEs)         \r", ++$count);
       my $ret = parse_iexml( $_, $recovery);
       foreach my $fileobj (@{ $ret->{files} }) {
         $fileobj->{file_mounted} = map_file($map_path, $fileobj->{filepath});
-- 
GitLab