forked from TrueCloudLab/restic
Fix progress for new index
This commit is contained in:
parent
d3da30e8fb
commit
aa29c68189
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue