diff options
author | romner <roman@skotnica.com> | 2023-07-19 15:54:35 +0200 |
---|---|---|
committer | romner <roman@skotnica.com> | 2023-07-19 15:54:35 +0200 |
commit | 972b2b6a011e9376090e1d14997550120eb37f36 (patch) | |
tree | 786a4b1ba7813756bf8dc187f0659ce98828ff86 /src | |
parent | 1f73453aeca76cd04d7154c3bc82b6ebf64ba593 (diff) |
Fix available boxes in menu & config description
Diffstat (limited to 'src')
-rw-r--r-- | src/btop_config.cpp | 2 | ||||
-rw-r--r-- | src/btop_input.cpp | 2 | ||||
-rw-r--r-- | src/btop_menu.cpp | 3 |
3 files changed, 4 insertions, 3 deletions
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\"."}, |