1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-20 10:55:42 +00:00

calc_stats progress display: add archive name

This commit is contained in:
Thomas Waldmann 2022-02-14 17:57:54 +01:00
parent 25e27a1539
commit a2fb9cde4e

View file

@ -671,7 +671,8 @@ Utilization of max. archive size: {csize_max:.0%}
archive_index = ChunkIndex()
sync = CacheSynchronizer(archive_index)
add(self.id)
pi = ProgressIndicatorPercent(total=len(self.metadata.items), msg='Calculating statistics... %3d%%',
pi = ProgressIndicatorPercent(total=len(self.metadata.items),
msg='Calculating statistics for archive %s ... %%3d%%%%' % self.name,
msgid='archive.calc_stats')
for id, chunk in zip(self.metadata.items, self.repository.get_many(self.metadata.items)):
pi.show(increase=1)