1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 10:17:58 +00:00

prune: Stop progress bar after searching used blobs

This commit is contained in:
Michael Eischer 2020-08-03 19:31:49 +02:00
parent 66d089e239
commit 04f79b9642

View file

@ -295,6 +295,7 @@ func getUsedBlobs(gopts GlobalOptions, repo restic.Repository, snapshots []*rest
bar := newProgressMax(!gopts.Quiet, uint64(len(snapshots)), "snapshots") bar := newProgressMax(!gopts.Quiet, uint64(len(snapshots)), "snapshots")
bar.Start() bar.Start()
defer bar.Done()
for _, sn := range snapshots { for _, sn := range snapshots {
debug.Log("process snapshot %v", sn.ID()) debug.Log("process snapshot %v", sn.ID())