diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-07-10 22:24:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-14 17:31:05 +0100 |
commit | 257a5e4649d3ea623d5a311d32ef251233964532 (patch) | |
tree | 4c4767dc9530606330b4cb7494c5efcf4a246aac /scripts | |
parent | c40b06921367e62f456145e504e4a6a7ebd0e2ee (diff) | |
download | poky-257a5e4649d3ea623d5a311d32ef251233964532.tar.gz |
pybootchartgui: fix width max usage in draw_label_in_box
The function draw_label_in_box chooses the correct side based on
the maximum width length argument 'maxx'.
Currently the labels are always drawn on the left side and this
is because we are inadvertently passing the 'maxx' argument wrong.
(From OE-Core rev: b1cea47c52899a85428e0bddf82ba6a07689673b)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index e2f9c5dc6c..3d1ff695c1 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -684,7 +684,7 @@ def render_processes_chart(ctx, options, trace, curr_y, width, h, sec_w): | |||
684 | 684 | ||
685 | # Show elapsed time for each task | 685 | # Show elapsed time for each task |
686 | process = "%ds %s" % (elapsed_time, process) | 686 | process = "%ds %s" % (elapsed_time, process) |
687 | draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h) | 687 | draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, width) |
688 | 688 | ||
689 | y = y + proc_h | 689 | y = y + proc_h |
690 | 690 | ||