From d4d18e851b74b77286f4a1cab7a448c78892ed35 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 10 Jun 2021 02:05:33 +0200 Subject: [PATCH] progress / stats cleanup --- src/borg/archiver.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 57b9c66bd..8f82da2d8 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1793,12 +1793,10 @@ class Archiver: self.print_warning('%s: Unsupported tar type %s', tarinfo.name, tarinfo.type) self.print_file_status(status, tarinfo.name) - self._it_save_archive(args, archive) - - def _it_save_archive(self, args, archive): - archive.save(comment=args.comment, timestamp=args.timestamp) if args.progress: archive.stats.show_progress(final=True) + archive.stats += tfo.stats + archive.save(comment=args.comment, timestamp=args.timestamp) args.stats |= args.json if args.stats: if args.json: