Skip to content
Browse files

Support paths with spaces.

  • Loading branch information...
1 parent a1f9d33 commit 1eb6ffd968a88d46bf49e1b148145a7b6d92f1d5 vuksan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 diskfree/python_modules/diskfree.py
View
2 diskfree/python_modules/diskfree.py
@@ -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 = '/'

0 comments on commit 1eb6ffd

Please sign in to comment.
Something went wrong with that request. Please try again.