This commit is contained in:
Sam 2013-05-01 10:34:22 +10:00
parent 8b419794f9
commit fc07fcbd9d

View file

@ -8,7 +8,7 @@ task "autospec" => :environment do
require 'autospec/runner' require 'autospec/runner'
force_polling = ARGV.any?{|a| a == "p" || a == "polling"} force_polling = ARGV.any?{|a| a == "p" || a == "polling"}
latency = (ARGV.find{|a| a =~ /l=|latency=/}.split("=")[1] || 3).to_i latency = ((ARGV.find{|a| a =~ /l=|latency=/}||"").split("=")[1] || 3).to_i
if force_polling if force_polling
puts "polling has been forced (slower) checking every #{latency} #{"second".pluralize(latency)}" puts "polling has been forced (slower) checking every #{latency} #{"second".pluralize(latency)}"