This commit is contained in:
Sam 2013-05-01 10:34:22 +10:00
parent 8b419794f9
commit fc07fcbd9d
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ task "autospec" => :environment do
require 'autospec/runner'
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
puts "polling has been forced (slower) checking every #{latency} #{"second".pluralize(latency)}"