summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2023-07-10 22:24:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-14 17:31:02 +0100
commitb1cea47c52899a85428e0bddf82ba6a07689673b (patch)
tree120af5b9936f9a3c43f25d14eb5583e828595ceb /scripts/pybootchartgui
parent81389ccdf22d3ea845ae8d894a0e4e0cdf589f2a (diff)
downloadopenembedded-core-b1cea47c52899a85428e0bddf82ba6a07689673b.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. 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/pybootchartgui')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py2
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):
# Show elapsed time for each task
process = "%ds %s" % (elapsed_time, process)
- draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h)
+ draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, width)
y = y + proc_h