Skip to content

Commit 63f859d

Browse files
committed
simplified
1 parent e7b7bf0 commit 63f859d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

progress.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ func NewTicker(ctx context.Context, counter Counter, size int64, d time.Duration
128128
started = time.Now()
129129
}
130130
} else {
131-
now := time.Now()
132131
ratio := progress.n / progress.size
133-
past := float64(now.Sub(started))
132+
past := float64(time.Now().Sub(started))
134133
future := time.Duration(past / ratio)
135134
progress.estimated = started.Add(future)
136135
}

0 commit comments

Comments
 (0)