lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-2.1.19.1 vs lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-2.1.21

- old
+ new

@@ -523,11 +523,11 @@ def do_GET(req, resp) # # First determine the path to the files to serve # if ENV['CHIMP_TEST'] != 'TRUE' - template_path = File.join(Gem.dir, 'gems', 'right_chimp-' + VERSION, 'lib/right_chimp/templates') + template_path = File.expand_path('../templates', __dir__) else template_path = 'lib/right_chimp/templates' end # @@ -551,10 +551,10 @@ if req.request_uri.path =~ /stats\.json$/ # instance the queue queue = ChimpQueue.instance stats_hash = {"running" => queue.get_jobs_by_status(:running).size, - "waiting" => queue.get_jobs_by_status(:waiting).size, + "waiting" => queue.get_jobs_by_status(:none).size, "failed" => queue.get_jobs_by_status(:error).size, "done" => queue.get_jobs_by_status(:done).size, "processing" => ChimpDaemon.instance.proc_counter.to_i, "holding" => queue.get_jobs_by_status(:holding).size }