From 972b2b6a011e9376090e1d14997550120eb37f36 Mon Sep 17 00:00:00 2001 From: romner Date: Wed, 19 Jul 2023 15:54:35 +0200 Subject: Fix available boxes in menu & config description --- src/btop_config.cpp | 2 +- src/btop_input.cpp | 2 +- src/btop_menu.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 boxes = {"cpu", "mem", "net", "proc"}; + static const array 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\"."}, -- cgit v1.2.3