Skip to content

Commit

Permalink
Add incremental speed status mode for more responsive speed and estim…
Browse files Browse the repository at this point in the history
…ates
  • Loading branch information
vearutop committed Sep 30, 2024
1 parent 816d00f commit e9cdf5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func (p *Progress) speedStatus(s *Status) {

if s.DonePercent > 0 {
s.Remaining = time.Duration((100.0 - s.DonePercent) * float64(ela) / dc)
s.Remaining = s.Remaining.Truncate(time.Second)
} else {
s.Remaining = 0
}

Check notice on line 222 in progress.go

View workflow job for this annotation

GitHub Actions / test (1.22.x)

6 statement(s) are not covered by tests.
Expand Down

0 comments on commit e9cdf5d

Please sign in to comment.