mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +00:00
prune: Fix progress information
This commit is contained in:
1 parent
eadf5dcb2d
commit
c5f1a83cb4
1 file changed
+1
-1
@@ -49,7 +49,7 @@ func rebuildIndex(ctx context.Context, repo restic.Repository, ignorePacks resti
|
||||
packs++
|
||||
}
|
||||
|
||||
bar := newProgressMax(!globalOptions.Quiet, packs, "packs")
|
||||
bar := newProgressMax(!globalOptions.Quiet, packs-uint64(len(ignorePacks)), "packs")
|
||||
idx, err := index.New(ctx, repo, ignorePacks, bar)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user