From fc07fcbd9dd8a4f654aaf219396bff14ca432e9a Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 May 2013 10:34:22 +1000 Subject: [PATCH] oops --- lib/tasks/autospec.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/autospec.rake b/lib/tasks/autospec.rake index d0a623e78..2f5932219 100644 --- a/lib/tasks/autospec.rake +++ b/lib/tasks/autospec.rake @@ -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)}"