summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/cpu/heim/linux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/data_harvester/cpu/heim/linux.rs')
-rw-r--r--src/app/data_harvester/cpu/heim/linux.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/app/data_harvester/cpu/heim/linux.rs b/src/app/data_harvester/cpu/heim/linux.rs
deleted file mode 100644
index f1b040c4..00000000
--- a/src/app/data_harvester/cpu/heim/linux.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-//! Linux-specific functions regarding CPU usage.
-
-use heim::cpu::os::linux::CpuTimeExt;
-
-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.nice()
- + cpu_time.system()
- + cpu_time.irq()
- + cpu_time.soft_irq()
- + cpu_time.steal())
- .get::<heim::units::time::second>();
- (
- working_time,
- working_time + (cpu_time.idle() + cpu_time.io_wait()).get::<heim::units::time::second>(),
- )
-}