mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Fix progress for new index
This commit is contained in:
parent
d3da30e8fb
commit
aa29c68189
@ -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 New Issue
Block a user