diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-11-25 20:30:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 20:30:16 -0500 |
commit | a634934e3d3480f107eb41e35e917ca35e56b4be (patch) | |
tree | e816717807d56278d73bb66d695cba6a554b4bdb /src/options.rs | |
parent | da27b69704cb018ef55935943e9a9ecadcf368bc (diff) |
bug: Fix inverted hide_avg_cpu option in config (#327)
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs index 7e8da0a7..53ccd223 100644 --- a/src/options.rs +++ b/src/options.rs @@ -594,7 +594,7 @@ fn get_show_average_cpu(matches: &clap::ArgMatches<'static>, config: &Config) -> return false; } else if let Some(flags) = &config.flags { if let Some(avg_cpu) = flags.hide_avg_cpu { - return avg_cpu; + return !avg_cpu; } } |