Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 1eb6ffd

Browse files
committed
Support paths with spaces.
1 parent a1f9d33 commit 1eb6ffd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diskfree/python_modules/diskfree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_value(name):
4141
"""Return a value for the requested metric"""
4242

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

0 commit comments

Comments
 (0)