From aabc60ddecb7ad17a2166d8d36e7ad1324dfc6cc Mon Sep 17 00:00:00 2001 From: Anatoliy Bilenko Date: Wed, 6 Nov 2024 13:12:18 +0200 Subject: [PATCH] Fix: Dest pid for remote processes is parsed properly now --- chronoscope/chart.py | 2 +- chronoscope/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chronoscope/chart.py b/chronoscope/chart.py index 1dfb7d0..68384cb 100644 --- a/chronoscope/chart.py +++ b/chronoscope/chart.py @@ -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: diff --git a/chronoscope/parser.py b/chronoscope/parser.py index 16bcb6a..16b351a 100644 --- a/chronoscope/parser.py +++ b/chronoscope/parser.py @@ -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