1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-04 10:39:50 +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 55f9028611
commit 0ddb1fa194

View file

@ -1214,8 +1214,8 @@ class Archiver:
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')