Skip to content

Commit

Permalink
Support paths with spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
vuksanv committed Jun 21, 2012
1 parent a1f9d33 commit 1eb6ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diskfree/python_modules/diskfree.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_value(name):
"""Return a value for the requested metric"""

# parse unit type and path from name
name_parser = re.match("^%s([a-z]+)_(\w+)$" % NAME_PREFIX, name)
name_parser = re.match("^%s(absolute|percent)_(.*)$" % NAME_PREFIX, name)
unit_type = name_parser.group(1)
if name_parser.group(2) == 'rootfs':
path = '/'
Expand Down

0 comments on commit 1eb6ffd

Please sign in to comment.