Fix available boxes in menu & config description

This commit is contained in:
romner 2023-07-19 15:54:35 +02:00
parent 1f73453aec
commit 972b2b6a01
4 changed files with 5 additions and 4 deletions

View file

@ -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.

View file

@ -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."},

View file

@ -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);

View file

@ -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\"."},