bin/metrics-cpu.rb in sensu-plugins-cpu-checks-4.0.0 vs bin/metrics-cpu.rb in sensu-plugins-cpu-checks-4.1.0

- old
+ new

@@ -46,9 +46,10 @@ cpu_count = 0 File.open("#{config[:proc_path]}/stat", 'r').each_line do |line| info = line.split(/\s+/) next if info.empty? + name = info.shift if name =~ /cpu([0-9]+|)/ # #YELLOW cpu_count = cpu_count + 1 # rubocop:disable Style/SelfAssignment