2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 11:46:36 +00:00

Merge pull request #1045 from restic/prune-fix-progress

prune: Fix progress information
This commit is contained in:
Alexander Neumann 2017-06-16 20:21:55 +02:00
commit e074833a7d

View File

@ -49,7 +49,7 @@ func rebuildIndex(ctx context.Context, repo restic.Repository, ignorePacks resti
packs++ packs++
} }
bar := newProgressMax(!globalOptions.Quiet, packs, "packs") bar := newProgressMax(!globalOptions.Quiet, packs-uint64(len(ignorePacks)), "packs")
idx, err := index.New(ctx, repo, ignorePacks, bar) idx, err := index.New(ctx, repo, ignorePacks, bar)
if err != nil { if err != nil {
return err return err