From 52806c2555d02d4a12e7419520a2aba05f7aaa06 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 23 Jul 2025 15:55:07 +0100 Subject: [PATCH] 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 --- scripts/pybootchartgui/pybootchartgui/draw.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.47.2