Permalink
Browse files

Merge pull request #75 from cmerrick/master

allow dashes in diskstats volume names to support lvm volumes like "dm-0"
  • Loading branch information...
aphyr committed Feb 23, 2014
2 parents f5f4422 + 943f488 commit d10c0d23dd5db7c97cfb46bd7cc17b17a331562b
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/riemann-diskstats
View
@@ -16,7 +16,7 @@ class Riemann::Tools::Diskstats
def state
f = File.read('/proc/diskstats')
state = f.split("\n").reject { |d| d =~ /(ram|loop)/ }.inject({}) do |s, line|
- if line =~ /^(?:\s+\d+){2}\s+([\w\d]+) (.*)$/
+ if line =~ /^(?:\s+\d+){2}\s+([\w\d\-]+) (.*)$/
dev = $1
['reads reqs',

0 comments on commit d10c0d2

Please sign in to comment.