lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.5.7 vs lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.5.8

- old
+ new

@@ -11,10 +11,10 @@ buffers =m['Buffers'].to_i total = m['MemTotal'].to_i used = total - free free_bc = free + buffers + cached - fraction = (free.to_f / total) + fraction = 1 - (free.to_f / total) swap_fraction = m['SwapTotal'] == 0 ? 0 : 1 - m['SwapFree'].to_f/m['SwapTotal'] desc = "usage\n\n#{shell('ps -eo pmem,pid,cmd | sort -nrb -k1 | head -10').chomp}" [