Removes useless stuff & update the --throttle options text

This commit is contained in:
erwanlr
2015-10-07 22:09:23 +01:00
parent b7552ac8aa
commit 7804aad776
2 changed files with 1 additions and 5 deletions

View File

@@ -98,10 +98,6 @@ class Browser
@throttle = throttle.to_i.abs / 1000.0
end
def throttle!
sleep @throttle if @throttle > 0
end
protected
def invalid_proxy_auth_format

View File

@@ -105,7 +105,7 @@ def help
puts '--request-timeout <request-timeout> Request Timeout.'
puts '--connect-timeout <connect-timeout> Connect Timeout.'
puts '--max-threads <max-threads> Maximum Threads.'
puts '--throttle <milliseconds> Milliseconds to wait before doing another web request. If used, the --max-threads will have no effect and should be assumed to be 1.'
puts '--throttle <milliseconds> Milliseconds to wait before doing another web request. If used, the --threads should be set to 1.'
puts '--help | -h This help screen.'
puts '--verbose | -v Verbose output.'
puts '--version Output the current version and exit.'