1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 22:25:23 +00:00

This version supports a rails_root environment variable.

This commit is contained in:
Dan Duvall 2011-06-30 21:25:31 +02:00 committed by Steve Schnepp
parent 197e093c66
commit 6eebc57166

View file

@ -75,6 +75,6 @@ when "config"
puts "total_memory.label total_memory"
puts "total_memory.draw LINE2"
else
m = Munin::UnicornMemoryStatus.new(RAILS_ROOT)
m = Munin::UnicornMemoryStatus.new(ENV['rails_root'] || RAILS_ROOT)
puts "total_memory.value #{m.total_memory}"
end