From cad138aa2373840072a7bf8f59e22ac0b57cbb3f Mon Sep 17 00:00:00 2001 From: Soumik Dutta <78898665+shalearkane@users.noreply.github.com> Date: Sat, 25 Feb 2023 06:17:39 +0530 Subject: [PATCH] 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 --- src/borg/archive.py | 2 ++ src/borg/testsuite/archive.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/borg/archive.py b/src/borg/archive.py index e16db7a4e..12b2c847a 100644 --- a/src/borg/archive.py +++ b/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): diff --git a/src/borg/testsuite/archive.py b/src/borg/testsuite/archive.py index 1cc2ffd0c..3dbd21a82 100644 --- a/src/borg/testsuite/archive.py +++ b/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 """