Skip to content

Commit 057f459

Browse files
committed
Fixed config variable show_gpu_info working correctly
1 parent 114a98d commit 057f459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/btop_draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ namespace Draw {
20102010
#ifdef GPU_SUPPORT
20112011
const bool show_gpu_on = Config::getS("show_gpu_info") == "On";
20122012
const bool gpus_shown_in_cpu_panel = Gpu::gpu_names.size() > 0 and (
2013-
show_gpu_on or (Config::getS("cpu_graph_lower") == "Auto" and Gpu::shown == 0)
2013+
show_gpu_on or (Config::getS("show_gpu_info") == "Auto" and Gpu::shown == 0)
20142014
);
20152015
const int gpus_height_offset = (Gpu::gpu_names.size() - Gpu::shown)*gpus_shown_in_cpu_panel;
20162016
int gpus_extra_height = gpus_shown_in_cpu_panel ? Gpu::gpu_names.size() - (show_gpu_on ? 0 : Gpu::shown) : 0;

0 commit comments

Comments
 (0)