From 0eb993d1291cf35b1329dd1af08b4723a26b7044 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sun, 15 Sep 2019 01:29:49 -0400 Subject: 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. --- src/app/data_collection/processes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app') 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(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)) -- cgit v1.2.3