diff options
author | Arthur She <arthur.she@linaro.org> | 2023-03-02 10:21:01 -0800 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2023-03-02 10:21:01 -0800 |
commit | bc67edf8c75b7684d0564b10ed487901547849c7 (patch) | |
tree | 8d80356fc9bb9d5b25e09087ef3e296d102a601d | |
parent | 4d7dec6199e79523acc47d264e629925ffb4f612 (diff) |
draw-timestamp-chart.py: Optimize. move 'keys' from the loop
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rwxr-xr-x | draw-timestamp-chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw-timestamp-chart.py b/draw-timestamp-chart.py index 58be590..e10fa63 100755 --- a/draw-timestamp-chart.py +++ b/draw-timestamp-chart.py @@ -132,6 +132,7 @@ if __name__ == "__main__": # Subtasks subtasks = td["subtasks"] row_num = 2 + keys = [["start", "end", colors], ["innerStart", "innerEnd", inner_colors]] for i in subtasks: subtask = subtasks[i] # Sort the tests @@ -142,7 +143,6 @@ if __name__ == "__main__": nr = [f"{t}\n({ms_to_hr_min(duration)})"] task_rows.append(nr) - keys = [["start", "end", colors], ["innerStart", "innerEnd", inner_colors]] for k in keys: start, end, color = k if (test[start] != -1): |