diff --git a/tools/sched/schedgraph.py b/tools/sched/schedgraph.py index 5e41c1cd9ea2..be5537d54848 100644 --- a/tools/sched/schedgraph.py +++ b/tools/sched/schedgraph.py @@ -978,7 +978,7 @@ def parse(self, file): def synchstamp(self, lines): status.startup("Rationalizing Timestamps") - tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*") + tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*") for line in lines: m = tstamp_re.match(line) if (m != None): @@ -989,7 +989,7 @@ def synchstamp(self, lines): def monostamp(self, lines): laststamp = None - tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*") + tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*") for line in lines: m = tstamp_re.match(line) if (m == None):