lib/lusnoc/watcher.rb in lusnoc-0.1.2.16562 vs lib/lusnoc/watcher.rb in lusnoc-0.1.2.16587
- old
+ new
@@ -38,10 +38,10 @@
end
end
def build_wait_condition(_url, time_left, max_consul_wait)
if time_left
- max = [t.left.to_i, max_consul_wait.to_i].max
+ max = [time_left.to_i, max_consul_wait.to_i].max
"&wait=#{max}s"
elsif max_consul_wait
"&wait=#{max_consul_wait.to_i}s"
else
''