mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c40b069213
commit
257a5e4649
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user