forked from TrueCloudLab/restic
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:
commit
12f167ee79
2 changed files with 7 additions and 0 deletions
6
changelog/unreleased/pull-4167
Normal file
6
changelog/unreleased/pull-4167
Normal 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
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue