2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

Merge pull request #4167 from aneesh-n/progress-percent-eta-fix

ui/backup: Fix percent and eta in backup progress
This commit is contained in:
Michael Eischer 2023-01-26 22:42:10 +01:00 committed by GitHub
commit 12f167ee79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Bugfix: ETA was missing from `backup` progress bar
A regression in restic 0.15.0 caused the ETA to be missing from the progress
bar displayed by the `backup` command. This has been fixed.
https://github.com/restic/restic/pull/4167

View File

@ -199,6 +199,7 @@ func (p *Progress) ReportTotal(item string, s archiver.ScanStats) {
p.scanStarted = true p.scanStarted = true
if item == "" { if item == "" {
p.scanFinished = true
p.printer.ReportTotal(item, p.start, s) p.printer.ReportTotal(item, p.start, s)
} }
} }