From 057f4594fbcc7d5540db67fb2ff85a36e40cb03c Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sun, 7 Jan 2024 14:10:40 +0100 Subject: [PATCH] Fixed config variable show_gpu_info working correctly --- 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 0ceaa2f..eecec45 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -2010,7 +2010,7 @@ namespace Draw { #ifdef GPU_SUPPORT const bool show_gpu_on = Config::getS("show_gpu_info") == "On"; const bool gpus_shown_in_cpu_panel = Gpu::gpu_names.size() > 0 and ( - show_gpu_on or (Config::getS("cpu_graph_lower") == "Auto" and Gpu::shown == 0) + show_gpu_on or (Config::getS("show_gpu_info") == "Auto" and Gpu::shown == 0) ); const int gpus_height_offset = (Gpu::gpu_names.size() - Gpu::shown)*gpus_shown_in_cpu_panel; int gpus_extra_height = gpus_shown_in_cpu_panel ? Gpu::gpu_names.size() - (show_gpu_on ? 0 : Gpu::shown) : 0;