Skip to content

Commit

Permalink
rubocop 1.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jan 4, 2023
1 parent ffe5580 commit d7fbbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/progress/eta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def seconds_left(completed)

current_eta = @started_at + ((now - @started_at) / completed)
@left = if @left
@left + ((current_eta - @left) * (1 + completed) * 0.5)
@left + ((current_eta - @left) * (completed + 1) * 0.5)
else
current_eta
end
Expand Down

0 comments on commit d7fbbd1

Please sign in to comment.