From a634934e3d3480f107eb41e35e917ca35e56b4be Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Wed, 25 Nov 2020 20:30:16 -0500 Subject: [PATCH] bug: Fix inverted hide_avg_cpu option in config (#327) --- src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }