forked from TrueCloudLab/restic
Merge pull request #1045 from restic/prune-fix-progress
prune: Fix progress information
This commit is contained in:
commit
e074833a7d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue