summaryrefslogtreecommitdiffstats
path: root/src/clap.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-11-21 05:28:42 -0500
committerGitHub <noreply@github.com>2022-11-21 05:28:42 -0500
commit4f00434210a20109f4b9ca27c1b1856f376499b5 (patch)
tree0ce69bbc487460c2acdecbc84d42e73b6faaecb9 /src/clap.rs
parentf887096ceae26c06a690c6400569cf2e74a79dec (diff)
other: non-normalized process CPU% cleanup and docs (#910)
* refactor: simplify non-normalized code * update docs * appease clippy * add comment * unnormalized * fix issues on non-Linux regarding typos/imports
Diffstat (limited to 'src/clap.rs')
-rw-r--r--src/clap.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/clap.rs b/src/clap.rs
index b7b9f9a6..9163cf7e 100644
--- a/src/clap.rs
+++ b/src/clap.rs
@@ -135,12 +135,12 @@ pub fn build_app() -> Command<'static> {
.help("Sets process CPU% to be based on current CPU%.")
.long_help("Sets process CPU% usage to be based on the current system CPU% usage rather than total CPU usage.");
- let per_core_percentage = Arg::new("per_core_percentage")
+ let unnormalized_cpu = Arg::new("unnormalized_cpu")
.short('p')
- .long("per_core_percentage")
- .help("Sets CPU% to be based on per core CPU%.")
+ .long("unnormalized_cpu")
+ .help("Show process CPU% without normalizing over the number of cores.")
.long_help(
- "Sets CPU% usage to be based on the per core CPU% usage rather than total CPU usage.",
+ "Shows process CPU usage without averaging over the number of CPU cores in the system.",
);
// TODO: [DEBUG] Add a proper debugging solution.
@@ -405,7 +405,7 @@ use CPU (3) as the default instead.
.arg(network_use_log)
.arg(network_use_binary_prefix)
.arg(current_usage)
- .arg(per_core_percentage)
+ .arg(unnormalized_cpu)
.arg(use_old_network_legend)
.arg(whole_word)
.arg(retention);