lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.0.4 vs lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.0.5

- old
+ new

@@ -6,10 +6,9 @@ end def memory m = File.read('/proc/meminfo').split(/\n/).inject({}) { |info, line| x = line.split(/:?\s+/) - # Assume kB... info[x[0]] = x[1].to_i info } free = m['MemFree'].to_i + m['Buffers'].to_i + m['Cached'].to_i total = m['MemTotal'].to_i