diff options
Diffstat (limited to 'src/app/data_harvester/cpu/heim/windows_macos.rs')
-rw-r--r-- | src/app/data_harvester/cpu/heim/windows_macos.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/app/data_harvester/cpu/heim/windows_macos.rs b/src/app/data_harvester/cpu/heim/windows_macos.rs deleted file mode 100644 index 6c110aab..00000000 --- a/src/app/data_harvester/cpu/heim/windows_macos.rs +++ /dev/null @@ -1,12 +0,0 @@ -//! Windows and macOS-specific functions regarding CPU usage. - -use crate::components::tui_widget::time_chart::Point; - -pub fn convert_cpu_times(cpu_time: &heim::cpu::CpuTime) -> Point { - let working_time: f64 = - (cpu_time.user() + cpu_time.system()).get::<heim::units::time::second>(); - ( - working_time, - working_time + cpu_time.idle().get::<heim::units::time::second>(), - ) -} |