diff options
author | aristocratos <gnmjpl@gmail.com> | 2024-01-07 14:10:40 +0100 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2024-01-07 14:10:40 +0100 |
commit | 057f4594fbcc7d5540db67fb2ff85a36e40cb03c (patch) | |
tree | 6a08524c9a525ec4f203822aebf1023d6fe3522e /src/btop_draw.cpp | |
parent | 114a98d813f618ab8ef594eb0de90a2a13dd3a0c (diff) |
Fixed config variable show_gpu_info working correctly
Diffstat (limited to 'src/btop_draw.cpp')
-rw-r--r-- | src/btop_draw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |