From c5f1a83cb44f7bd9c741346d669b4f8e163a567a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 16 Jun 2017 19:03:26 +0200 Subject: [PATCH] prune: Fix progress information --- src/cmds/restic/cmd_rebuild_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds/restic/cmd_rebuild_index.go b/src/cmds/restic/cmd_rebuild_index.go index 9f3cc888c..259d573b9 100644 --- a/src/cmds/restic/cmd_rebuild_index.go +++ b/src/cmds/restic/cmd_rebuild_index.go @@ -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