bug: Fix inverted hide_avg_cpu option in config (#327)

This commit is contained in:
Clement Tsang 2020-11-25 20:30:16 -05:00 committed by GitHub
parent da27b69704
commit a634934e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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