Skip to content

Commit

Permalink
Fix: Dest pid for remote processes is parsed properly now
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Bilenko authored and Anatoliy Bilenko committed Nov 6, 2024
1 parent 08cc85b commit 079f7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chronoscope/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def plot_timeline(timeline, y_pos: int):
event_label = current_tick["event"]

pt.hlines(y_pos_scaled, start_time, end_time, lw=4,
colors=cm.tab10(current)) # type: ignore[attr-defined]
colors=cm.tab10(current) % 7) # type: ignore[attr-defined]
pt.text(start_time, y_pos_scaled, event_label, rotation=90)

if len(timeline[:]) == 1:
Expand Down
2 changes: 1 addition & 1 deletion chronoscope/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def make_rel_parser(self, orig_id: int, dest_id: int,
def parse(line: list[str], parse_type: str):
return {
"orig": u.pack(int(line[orig_id]), int(line[orig_pid])),
"dest": u.pack(int(line[dest_id]), int(line[orig_pid])),
"dest": u.pack(int(line[dest_id]), int(line[dest_pid])),
"type": line[type]
} if type < len(line) and parse_type == line[type] else None
return parse
Expand Down

0 comments on commit 079f7e7

Please sign in to comment.