From: Ross Burton Date: Wed, 23 Jul 2025 14:55:07 +0000 (+0100) Subject: pybootchartgui: account for network stats when calculating extents X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52806c2555d02d4a12e7419520a2aba05f7aaa06;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git pybootchartgui: account for network stats when calculating extents We could take into account the network device statistics when calculating the size of the image, otherwise charts will be truncated. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 09253ea185..4d76ce6e8e 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py @@ -371,6 +371,8 @@ def extents(options, xscale, trace): h += 30 + bar_h if trace.mem_stats: h += meminfo_bar_h + if trace.net_stats: + h += (30 + bar_h) * len(trace.net_stats) # Allow for width of process legend and offset if w < (720 + off_x):