lib/god/cli/command.rb in obitum-god-0.7.14 vs lib/god/cli/command.rb in obitum-god-0.7.14.1
- old
+ new
@@ -227,10 +227,10 @@
def munin_command
@server.watches.each do |name, watch|
process = System::Process.new(watch.pid)
case @args[1]
when "memory"
- puts "#{name.gsub('-','_')}_memory.value #{process.memory}"
+ puts "#{name.gsub('-','_')}_memory.value #{process.memory*1000}"
when "cpu"
puts "#{name.gsub('-','_')}_cpu.value #{process.percent_cpu}"
end
end
end