From 169737fb86d28fe97106ee58837d341168fdca6c Mon Sep 17 00:00:00 2001 From: Patrick Wieschollek Date: Sat, 25 Apr 2026 15:23:05 +0200 Subject: [PATCH] Update src/btop_draw.cpp Co-authored-by: dieter-apptronik --- src/btop_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp index 9e42b6d7..e943d95c 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -641,7 +641,7 @@ namespace Cpu { } else { graph = Draw::Graph{ - max(1, graph_width + graph_default_width%graph_width - (int)gpus.size() + 1), + max(1, graph_width + (gpu_draw_count > 0 ? gpu_drawable_width % gpu_draw_count : 0)), graph_height, "cpu", safeVal(gpu.gpu_percent, graph_field), graph_symbol, invert, true }; }