From 846c2b6869d599773225dac529656f030304bcae Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 29 Apr 2018 14:40:49 +0200 Subject: [PATCH] backup: Fix ETA calculation for >= 100% --- internal/ui/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/backup.go b/internal/ui/backup.go index ebd56b8bc..f6f840136 100644 --- a/internal/ui/backup.go +++ b/internal/ui/backup.go @@ -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)) }