From cc04253afd15343a3c14bd2effa6f987f47ebd59 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 19 Apr 2022 21:51:55 +0200 Subject: [PATCH] prune: fix --stats --iec output to use binary units, see #6606 --- src/borg/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 92a62c5e0..f5d305b2a 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1538,8 +1538,8 @@ class Archiver: keep += prune_split(archives, rule, num, kept_because) to_delete = (set(archives) | checkpoints) - (set(keep) | set(keep_checkpoints)) - stats = Statistics() - with Cache(repository, key, manifest, lock_wait=self.lock_wait) as cache: + stats = Statistics(iec=args.iec) + with Cache(repository, key, manifest, lock_wait=self.lock_wait, iec=args.iec) as cache: list_logger = logging.getLogger('borg.output.list') # set up counters for the progress display to_delete_len = len(to_delete)