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
|
||||
|
||||
def self.run_speedtest
|
||||
output = `speedtest`
|
||||
output = `speedtest --accept-license --accept-gdpr`
|
||||
if $?.success?
|
||||
download_speed = output.match(/Download:\s+(\d+\.\d+)\sMbps/)[1]
|
||||
upload_speed = output.match(/Upload:\s+(\d+\.\d+)\sMbps/)[1]
|
||||
|
Loading…
Reference in New Issue
Block a user