Added --accept-license and --accept-gdpr to command speedtest
This commit is contained in:
parent
085dd1c509
commit
f7cc2b29e3
@ -39,7 +39,7 @@ class Rate < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.run_speedtest
|
def self.run_speedtest
|
||||||
output = `speedtest`
|
output = `speedtest --accept-license --accept-gdpr`
|
||||||
if $?.success?
|
if $?.success?
|
||||||
download_speed = output.match(/Download:\s+(\d+\.\d+)\sMbps/)[1]
|
download_speed = output.match(/Download:\s+(\d+\.\d+)\sMbps/)[1]
|
||||||
upload_speed = output.match(/Upload:\s+(\d+\.\d+)\sMbps/)[1]
|
upload_speed = output.match(/Upload:\s+(\d+\.\d+)\sMbps/)[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user