bin/check-cpu.rb in sensu-plugins-cpu-checks-0.0.3 vs bin/check-cpu.rb in sensu-plugins-cpu-checks-0.0.4
- old
+ new
@@ -60,10 +60,10 @@
name = info.shift
return info.map(&:to_f) if name.match(/^cpu$/)
end
end
- def run # rubocop:disable all
+ def run
metrics = [:user, :nice, :system, :idle, :iowait, :irq, :softirq, :steal, :guest]
cpu_stats_before = acquire_cpu_stats
sleep config[:sleep]
cpu_stats_after = acquire_cpu_stats