lib/riemann/tools/diskstats.rb in riemann-tools-1.6.0 vs lib/riemann/tools/diskstats.rb in riemann-tools-1.7.0

- old
+ new

@@ -15,10 +15,10 @@ end def state f = File.read('/proc/diskstats') state = f.split("\n").reject { |d| d =~ /(ram|loop)/ }.each_with_object({}) do |line, s| - next unless line =~ /^(?:\s+\d+){2}\s+([\w\d\-]+) (.*)$/ + next unless line =~ /^(?:\s+\d+){2}\s+([\w\d-]+) (.*)$/ dev = Regexp.last_match(1) ['reads reqs', 'reads merged',