bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-1.0.1 vs bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-1.0.2

- old
+ new

@@ -83,10 +83,10 @@ stage = :cpu key = Regexp.last_match[1] headers = line.gsub(/%/, 'pct_').split(/\s+/) headers.shift next - when /^(Device):/ + when /^(Device):\s+.+/, /^(Device)\s+.+/ stage = :device headers = line.gsub(/%/, 'pct_').split(/\s+/).map { |h| h.gsub(/\//, '_per_') } headers.shift next end