Fix parsing of mdstat output
When an operation is in progress, there could be two spaces before the percentage when it's less than 10%.
Jeff Henson committed
Jul 25, 2017 at 08:11 UTC
cc4e386f89e685e378f6c184c680243d146a71d7
1 file changed
+1
-1
python.d/mdstat.chart.py
+1
-1
@@ -20,7 +20,7 @@ class Service(SimpleService):
20
r'(?P<total_disks>[0-9]+)/'
21
r'(?P<inuse_disks>[0-9])\]'),
22
status=re_compile(r' (?P<array>[a-zA-Z_0-9]+) : active .+ '
23
- r'(?P<operation>[a-z]+) = '
23
+ r'(?P<operation>[a-z]+) =[ ]{1,2}'
24
r'(?P<operation_status>[0-9.]+).+finish='
25
r'(?P<finish>([0-9.]+))min speed='
26
r'(?P<speed>[0-9]+)'))