2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

This version support a rails_root environment variable.

This commit is contained in:
Dan Duvall 2011-06-30 21:24:47 +02:00 committed by Steve Schnepp
parent 214407caa0
commit 197e093c66

View File

@ -73,7 +73,7 @@ when "config"
puts "total_worker.label total_workers"
puts "idle_worker.label idle_workers"
else
m = Munin::UnicornStatus.new(RAILS_ROOT)
m = Munin::UnicornStatus.new(ENV['rails_root'] || RAILS_ROOT)
puts "total_worker.value #{m.worker_count}"
puts "idle_worker.value #{m.idle_worker_count}"
end