mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
oops
This commit is contained in:
parent
8b419794f9
commit
fc07fcbd9d
1 changed files with 1 additions and 1 deletions
|
@ -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)}"
|
||||
|
|
Loading…
Reference in a new issue