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