lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.3.1 vs lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.3.3
- old
+ new
@@ -1,6 +1,5 @@
-class Riemann::Babbler::Memory
- include Riemann::Babbler
+class Riemann::Babbler::Memory < Riemann::Babbler
def memory
m = File.read('/proc/meminfo').split(/\n/).inject({}) { |info, line|
x = line.split(/:?\s+/)
info[x[0]] = x[1].to_i