lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-2.1.8 vs lib/right_chimp/daemon/ChimpDaemon.rb in right_chimp-2.1.10
- old
+ new
@@ -537,11 +537,11 @@
stats = ""
stats << "running: #{queue.get_jobs_by_status(:running).size} / "
stats << "waiting: #{queue.get_jobs_by_status(:none).size} / "
stats << "failed: #{queue.get_jobs_by_status(:error).size} / "
stats << "done: #{queue.get_jobs_by_status(:done).size} / "
- stats << "processing: #{ChimpDaemon.instance.proc_counter.to_s} / "
+ stats << "processing: #{ChimpDaemon.instance.proc_counter.to_i} / "
stats << "\n"
resp.body = stats
raise WEBrick::HTTPStatus::OK
@@ -553,10 +553,10 @@
stats_hash = {"running" => queue.get_jobs_by_status(:running).size,
"waiting" => queue.get_jobs_by_status(:waiting).size,
"failed" => queue.get_jobs_by_status(:error).size,
"done" => queue.get_jobs_by_status(:done).size,
- "processing" => ChimpDaemon.instance.proc_counter.to_s,
+ "processing" => ChimpDaemon.instance.proc_counter.to_i,
"holding" => queue.get_jobs_by_status(:holding).size
}
resp.body = JSON.generate(stats_hash)