From bf301a977ee7fab29ae06bf10da10a9730da09ea Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 23 May 2018 18:19:50 -0400 Subject: [PATCH] graphstats: Make check for stats prefixes more robust Signed-off-by: Kevin O'Connor --- scripts/graphstats.py | 2 +- scripts/logextract.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)