diff options
Diffstat (limited to 'lib/oxidized/core.rb')
-rw-r--r-- | lib/oxidized/core.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/oxidized/core.rb b/lib/oxidized/core.rb index 70e9e42..14de9ab 100644 --- a/lib/oxidized/core.rb +++ b/lib/oxidized/core.rb @@ -16,8 +16,10 @@ module Oxidized Oxidized.mgr = Manager.new nodes = Nodes.new @worker = Worker.new nodes - @rest = API::Web.new nodes, CFG.rest if CFG.rest - @rest.run + if CFG.rest + @rest = API::Web.new nodes, CFG.rest + @rest.run + end run end @@ -26,7 +28,7 @@ module Oxidized def run while true @worker.work - Config::Sleep + sleep Config::Sleep end end end |