lib/riemann/babbler/plugins/cpu.rb in riemann-babbler-0.9.9.7 vs lib/riemann/babbler/plugins/cpu.rb in riemann-babbler-0.9.9.8
- old
+ new
@@ -1,10 +1,10 @@
#encoding: utf-8
class Riemann::Babbler::Cpu < Riemann::Babbler
def desc
- "#{shell('ps -eo pcpu,pid,cmd --sort -pcpu | head -10').chomp}"
+ "#{shell('ps -eo pcpu,pid,cmd --sort -pcpu | head -3').chomp}"
end
def init
@old_cpu = Hash.new
end