mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-15 09:54:33 +12:00
Changed: cpu_graph_lower Auto defaults to cpu_graph_upper when show_gpu_info is Off
This commit is contained in:
parent
a9bc0874d4
commit
efddad42dc
|
@ -540,7 +540,7 @@ namespace Cpu {
|
|||
graph_up_field = "total";
|
||||
auto graph_lo_field = Config::getS("cpu_graph_lower");
|
||||
if (graph_lo_field == "Auto" or not v_contains(Cpu::available_fields, graph_lo_field)) {
|
||||
graph_lo_field = show_gpu ? "gpu-totals" : "total";
|
||||
graph_lo_field = show_gpu ? "gpu-totals" : graph_up_field;
|
||||
}
|
||||
auto tty_mode = Config::getB("tty_mode");
|
||||
auto& graph_symbol = (tty_mode ? "tty" : Config::getS("graph_symbol_cpu"));
|
||||
|
|
Loading…
Reference in a new issue