lib/riemann/babbler/plugins/cpu.rb in riemann-babbler-0.8.6 vs lib/riemann/babbler/plugins/cpu.rb in riemann-babbler-0.8.7
- old
+ new
@@ -30,10 +30,11 @@
total = used + i2-i1
fraction = used.to_f / total
end
@old_cpu[cpu_number] = [u2, n2, s2, i2]
- array << { :service => plugin.service + " cpu#{cpu_number}", :metric => fraction, :description => "Cpu#{cpu_number} utilization\n\n#{description}" } if fraction
+ spaces = " "
+ array << { :service => plugin.service + " cpu#{cpu_number}", :metric => fraction, :description => "Cpu#{cpu_number} usage#{spaces}\n\n#{description}" } if fraction
end
array
end
end