Skip to content

Commit

Permalink
ttgrep.py didn't handle negative times
Browse files Browse the repository at this point in the history
  • Loading branch information
johnousterhout committed Nov 10, 2023
1 parent c111252 commit 767640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/ttgrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def scan(f, string):
prevTime = 0.0
writes = 0
for line in f:
match = re.match(' *([0-9.]+) us \(\+ *([0-9.]+) us\) (.*)',
match = re.match(' *([-0-9.]+) us \(\+ *([0-9.]+) us\) (.*)',
line)
if not match:
continue
Expand Down

0 comments on commit 767640e

Please sign in to comment.