diff --git a/scripts/graphstats.py b/scripts/graphstats.py index 452cff72..26e6c606 100755 --- a/scripts/graphstats.py +++ b/scripts/graphstats.py @@ -34,7 +34,7 @@ def parse_log(logname, mcu): prefix = "" keyparts = {} for p in parts[2:]: - if p.endswith(':'): + if '=' not in p: prefix = p if prefix == mcu_prefix: prefix = '' diff --git a/scripts/logextract.py b/scripts/logextract.py index 00d60c93..17584cbb 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -112,7 +112,7 @@ class GatherShutdown: mcu = "" keyparts = {} for p in parts[2:]: - if p.endswith(':'): + if '=' not in p: mcu = p continue name, val = p.split('=', 1)