2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 08:14:03 +00:00

ui/backup: Fix percent and eta in backup progress

Added missing call to scanFinished=true.
This was causing the percent and eta to never get
printed for backup progress even after the scan was finished.
This commit is contained in:
Aneesh Nireshwalia 2023-01-21 13:25:08 -07:00
parent 0f398b82e3
commit ed23edeb62

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)
} }
} }