Browse Source

Add files changed while reading to Statistics class #7354 (#7378)

add files changed while reading to Statistics class, fixes #7354

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
Soumik Dutta 2 years ago
parent
commit
cad138aa23
2 changed files with 3 additions and 0 deletions
  1. 2 0
      src/borg/archive.py
  2. 1 0
      src/borg/testsuite/archive.py

+ 2 - 0
src/borg/archive.py

@@ -97,6 +97,7 @@ Added files: {added_files}
 Unchanged files: {unchanged_files}
 Modified files: {modified_files}
 Error files: {error_files}
+Files changed while reading: {files_changed_while_reading}
 Bytes read from remote: {stats.rx_bytes}
 Bytes sent to remote: {stats.tx_bytes}
 """.format(
@@ -107,6 +108,7 @@ Bytes sent to remote: {stats.tx_bytes}
             unchanged_files=self.files_stats["U"],
             modified_files=self.files_stats["M"],
             error_files=self.files_stats["E"],
+            files_changed_while_reading=self.files_stats["C"],
         )
 
     def __repr__(self):

+ 1 - 0
src/borg/testsuite/archive.py

@@ -67,6 +67,7 @@ Added files: 0
 Unchanged files: 0
 Modified files: 0
 Error files: 0
+Files changed while reading: 0
 Bytes read from remote: 0
 Bytes sent to remote: 0
 """