graphstats: Make check for stats prefixes more robust
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3e1febce78
commit
bf301a977e
|
@ -34,7 +34,7 @@ def parse_log(logname, mcu):
|
||||||
prefix = ""
|
prefix = ""
|
||||||
keyparts = {}
|
keyparts = {}
|
||||||
for p in parts[2:]:
|
for p in parts[2:]:
|
||||||
if p.endswith(':'):
|
if '=' not in p:
|
||||||
prefix = p
|
prefix = p
|
||||||
if prefix == mcu_prefix:
|
if prefix == mcu_prefix:
|
||||||
prefix = ''
|
prefix = ''
|
||||||
|
|
|
@ -112,7 +112,7 @@ class GatherShutdown:
|
||||||
mcu = ""
|
mcu = ""
|
||||||
keyparts = {}
|
keyparts = {}
|
||||||
for p in parts[2:]:
|
for p in parts[2:]:
|
||||||
if p.endswith(':'):
|
if '=' not in p:
|
||||||
mcu = p
|
mcu = p
|
||||||
continue
|
continue
|
||||||
name, val = p.split('=', 1)
|
name, val = p.split('=', 1)
|
||||||
|
|
Loading…
Reference in New Issue