bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-0.0.2 vs bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-0.0.3
- old
+ new
@@ -86,9 +86,10 @@
next if stage == :initial
fields = line.split(/\s+/)
key = fields.shift if stage == :device
+ fields.shift if stage == :cpu
stats[key] = Hash[headers.zip(fields.map(&:to_f))]
end
stats
end