logextract: Fix handling of clock reports at end of line

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-08 10:30:42 -04:00
parent 909eef3978
commit 8eb1110aa8
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class GatherShutdown:
if seq is not None: if seq is not None:
line = repl_seq_r.sub(r"\g<0>(%d)" % (seq,), line) line = repl_seq_r.sub(r"\g<0>(%d)" % (seq,), line)
def clock_update(m): def clock_update(m):
return m.group(0)[:-1] + "(%.6f) " % ( return m.group(0).rstrip() + "(%.6f) " % (
self.trans_clock(int(m.group('clock')), ts),) self.trans_clock(int(m.group('clock')), ts),)
line = repl_clock_r.sub(clock_update, line) line = repl_clock_r.sub(clock_update, line)
return line return line