summaryrefslogtreecommitdiffstats
path: root/src/btop_config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btop_config.hpp')
-rw-r--r--src/btop_config.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/btop_config.hpp b/src/btop_config.hpp
index 82b232d..c71d29c 100644
--- a/src/btop_config.hpp
+++ b/src/btop_config.hpp
@@ -43,10 +43,16 @@ namespace Config {
const vector<string> valid_graph_symbols = { "braille", "block", "tty" };
const vector<string> valid_graph_symbols_def = { "default", "braille", "block", "tty" };
- const vector<string> valid_boxes = { "cpu", "mem", "net", "proc", "gpu0", "gpu1", "gpu2", "gpu3", "gpu4", "gpu5" };
+ const vector<string> valid_boxes = {
+ "cpu", "mem", "net", "proc"
+#ifdef GPU_SUPPORT
+ ,"gpu0", "gpu1", "gpu2", "gpu3", "gpu4", "gpu5"
+#endif
+ };
const vector<string> temp_scales = { "celsius", "fahrenheit", "kelvin", "rankine" };
+#ifdef GPU_SUPPORT
const vector<string> show_gpu_values = { "Auto", "On", "Off" };
-
+#endif
extern vector<string> current_boxes;
extern vector<string> preset_list;
extern vector<string> available_batteries;