mirror of
https://github.com/restic/restic.git
synced 2026-11-01 13:05:41 +00:00
backup: Fix ETA calculation for >= 100%
This commit is contained in:
1 parent
d8bbe5dc84
commit
846c2b6869
1 file changed
+1
-1
@@ -147,7 +147,7 @@ func (b *Backup) update(total, processed counter, errors uint, currentFiles map[
|
||||
} else {
|
||||
var eta string
|
||||
|
||||
if secs > 0 {
|
||||
if secs > 0 && processed.Bytes < total.Bytes {
|
||||
eta = fmt.Sprintf(" ETA %s", formatSeconds(secs))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user