2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-27 12:42:49 +00:00

Fix progress for new index

This commit is contained in:
Alexander Neumann 2016-08-20 20:44:57 +02:00
parent d3da30e8fb
commit aa29c68189

View File

@ -185,6 +185,9 @@ func (cmd CmdPrune) Execute(args []string) error {
cmd.global.Verbosef("creating new index\n")
for _ = range repo.List(backend.Data, done) {
stats.packs++
}
bar = newProgressMax(cmd.global.ShowProgress(), uint64(stats.packs), "files")
idx, err = index.New(repo, bar)
if err != nil {