bin/metrics-cpu-mpstat.rb in sensu-plugins-cpu-checks-0.0.4 vs bin/metrics-cpu-mpstat.rb in sensu-plugins-cpu-checks-1.0.0

- old
+ new

@@ -76,10 +76,10 @@ cpu_count = sample_cpus.length - 1 delta_cpus.each_pair do |cpu, columns| # assumes architecture's jiffie is 1/100th of a second columns.each_pair do |task, time| # #YELLOW - time = time / cpu_count if "#{cpu}" == 'cpu' # rubocop:disable Style/SelfAssignment + time = time / cpu_count if cpu.to_s == 'cpu' # rubocop:disable Style/SelfAssignment output "#{config[:scheme]}.#{cpu}.#{task}", time end end ok end