summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2017-01-12 15:45:12 +0200
committerSaku Ytti <saku@ytti.fi>2017-01-12 15:45:12 +0200
commit25f100e67c63e118ed72b442c8051c179c9bf777 (patch)
treeecc7ccddc99200b43342661f1a98039ddaa3fbb2 /lib/oxidized
parent691141d90dfdf982e98b02eab7e8938a95dd5855 (diff)
fix /next guardnext-with-new-thread
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/nodes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb
index 72a2dc4..6751c7a 100644
--- a/lib/oxidized/nodes.rb
+++ b/lib/oxidized/nodes.rb
@@ -73,7 +73,7 @@ module Oxidized
# set last job to nil so that the node is picked for immediate update
n.last = nil
put n
- jobs.want += 1 if Config.next_adds_job
+ jobs.want += 1 if Oxidized.config.next_adds_job?
end
end
end