summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/btop_config.cpp2
-rw-r--r--src/btop_input.cpp2
-rw-r--r--src/btop_menu.cpp3
4 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2b2dfd4..e0c6e3c 100644
--- a/README.md
+++ b/README.md
@@ -681,7 +681,7 @@ graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
-#* Manually set which boxes to show. Available values are "cpu mem net proc gpu", separate values with whitespace.
+#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "proc cpu mem net"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
diff --git a/src/btop_config.cpp b/src/btop_config.cpp
index 4c29af6..15e6adb 100644
--- a/src/btop_config.cpp
+++ b/src/btop_config.cpp
@@ -80,7 +80,7 @@ namespace Config {
{"graph_symbol_proc", "# Graph symbol to use for graphs in cpu box, \"default\", \"braille\", \"block\" or \"tty\"."},
- {"shown_boxes", "#* Manually set which boxes to show. Available values are \"cpu mem net proc gpu\", separate values with whitespace."},
+ {"shown_boxes", "#* Manually set which boxes to show. Available values are \"cpu mem net proc\" and \"gpu0\" through \"gpu5\", separate values with whitespace."},
{"update_ms", "#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs."},
diff --git a/src/btop_input.cpp b/src/btop_input.cpp
index ee0816b..60d717c 100644
--- a/src/btop_input.cpp
+++ b/src/btop_input.cpp
@@ -263,7 +263,7 @@ namespace Input {
else if (is_in(key, "1", "2", "3", "4")) {
atomic_wait(Runner::active);
Config::current_preset = -1;
- static const array<string, 10> boxes = {"cpu", "mem", "net", "proc"};
+ static const array<string, 4> boxes = {"cpu", "mem", "net", "proc"};
Config::toggle_box(boxes.at(std::stoi(key) - 1));
Draw::calcSizes();
Runner::run("all", false, true);
diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp
index 7bc2b0a..5f7f10d 100644
--- a/src/btop_menu.cpp
+++ b/src/btop_menu.cpp
@@ -216,7 +216,8 @@ namespace Menu {
{"shown_boxes",
"Manually set which boxes to show.",
"",
- "Available values are \"cpu mem net proc\".",
+ "Available values are \"cpu mem net proc\",",
+ "or \"gpu0\" through \"gpu5\" for GPU boxes.",
"Separate values with whitespace.",
"",
"Toggle between presets with key \"p\"."},