mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 21:55:11 +02:00
bug: Fix inverted hide_avg_cpu option in config (#327)
This commit is contained in:
parent
da27b69704
commit
a634934e3d
@ -594,7 +594,7 @@ fn get_show_average_cpu(matches: &clap::ArgMatches<'static>, config: &Config) ->
|
|||||||
return false;
|
return false;
|
||||||
} else if let Some(flags) = &config.flags {
|
} else if let Some(flags) = &config.flags {
|
||||||
if let Some(avg_cpu) = flags.hide_avg_cpu {
|
if let Some(avg_cpu) = flags.hide_avg_cpu {
|
||||||
return avg_cpu;
|
return !avg_cpu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user