diff options
author | ClementTsang <clementjhtsang@gmail.com> | 2019-09-15 01:29:49 -0400 |
---|---|---|
committer | ClementTsang <clementjhtsang@gmail.com> | 2019-09-15 01:29:49 -0400 |
commit | 0eb993d1291cf35b1329dd1af08b4723a26b7044 (patch) | |
tree | e388f96c0b5389c6cd6db2a989dc45d29822b96d /src/app | |
parent | 282acd1395fb521be3ca94c7731abfdfa2c9ae0c (diff) |
Added a few changes - fix for slow start time feel, changed cpu legend display, added logic to make avg cpu display over everything. Also changed tui source to a fork.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/data_collection/processes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/data_collection/processes.rs b/src/app/data_collection/processes.rs index b1d495bf..85ce5a61 100644 --- a/src/app/data_collection/processes.rs +++ b/src/app/data_collection/processes.rs @@ -97,7 +97,7 @@ fn get_ordering<T : std::cmp::PartialOrd>(a_val : T, b_val : T, reverse_order : async fn non_linux_cpu_usage(process : heim::process::Process) -> heim::process::ProcessResult<(heim::process::Process, heim_common::units::Ratio)> { let usage_1 = process.cpu_usage().await?; - futures_timer::Delay::new(std::time::Duration::from_millis(100)).await?; + futures_timer::Delay::new(std::time::Duration::from_millis(100)).await?; // TODO: For windows, make it like the linux check let usage_2 = process.cpu_usage().await?; Ok((process, usage_2 - usage_1)) |