Update the timestamp regexps in syncstamp() and monostamp() for > 99999
traces where there isn't any leading whitespace before the record number in the ktrdump output.
This commit is contained in:
parent
581487018d
commit
f455512fdd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user