1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-24 23:13:25 +00:00

delete: fix --stats --iec output to use binary units, see #6606

This commit is contained in:
Thomas Waldmann 2022-04-19 21:50:26 +02:00
parent 5743ec7e09
commit 8d1e012ecc

View file

@ -1403,8 +1403,8 @@ def _delete_archives(self, args, repository):
logger.warning('Aborted.')
return self.exit_code
stats = Statistics()
with Cache(repository, key, manifest, progress=args.progress, lock_wait=self.lock_wait) as cache:
stats = Statistics(iec=args.iec)
with Cache(repository, key, manifest, progress=args.progress, lock_wait=self.lock_wait, iec=args.iec) as cache:
msg_delete = 'Would delete archive: {} ({}/{})' if dry_run else 'Deleting archive: {} ({}/{})'
msg_not_found = 'Archive {} not found ({}/{}).'
logger_list = logging.getLogger('borg.output.list')