diff --git a/src/cmds/restic/cmd_prune.go b/src/cmds/restic/cmd_prune.go index 8e52bd8d1..228e7ac0b 100644 --- a/src/cmds/restic/cmd_prune.go +++ b/src/cmds/restic/cmd_prune.go @@ -55,7 +55,6 @@ func newProgressMax(show bool, max uint64, description string) *restic.Progress } p.OnDone = func(s restic.Stat, d time.Duration, ticker bool) { - p.OnUpdate(s, d, false) fmt.Printf("\n") } diff --git a/src/restic/progress.go b/src/restic/progress.go index cca1a4e47..4721fac3c 100644 --- a/src/restic/progress.go +++ b/src/restic/progress.go @@ -152,6 +152,7 @@ func (p *Progress) Done() { if p.OnDone != nil { p.fnM.Lock() + p.OnUpdate(cur, time.Since(p.start), false) p.OnDone(cur, time.Since(p.start), false) p.fnM.Unlock() }