Skip to content

Commit

Permalink
[rb] missed references in the refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 19, 2021
1 parent 9ad3f5a commit 049958b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/lib/selenium/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ def download_server(uri, destination)

if (segment_count % 15).zero?
percent = progress.fdiv(total) * 100
print "#{CL_RESET}Downloading #{download_file_name}: #{percent.to_i}% (#{progress} / #{total})"
print "#{CL_RESET}Downloading #{destination.path}: #{percent.to_i}% (#{progress} / #{total})"
segment_count = 0
end

destination.write(segment)
end
end

raise Error, "#{resp.code} for #{download_file_name}" unless resp.is_a? Net::HTTPSuccess
raise Error, "#{resp.code} for #{destination.path}" unless resp.is_a? Net::HTTPSuccess
end
end
end
Expand Down

0 comments on commit 049958b

Please sign in to comment.