2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 23:06:32 +00:00

backup: Fix ETA calculation for >= 100%

This commit is contained in:
Alexander Neumann 2018-04-29 14:40:49 +02:00
parent d8bbe5dc84
commit 846c2b6869

View File

@ -147,7 +147,7 @@ func (b *Backup) update(total, processed counter, errors uint, currentFiles map[
} else { } else {
var eta string var eta string
if secs > 0 { if secs > 0 && processed.Bytes < total.Bytes {
eta = fmt.Sprintf(" ETA %s", formatSeconds(secs)) eta = fmt.Sprintf(" ETA %s", formatSeconds(secs))
} }