From 86127f13f1aeaecfe9d78b53f9bd68cdca570860 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 11 Feb 2026 13:39:35 +0300 Subject: [PATCH] cpu: remove legacy `usage_average` Signed-off-by: NotAShelf Change-Id: I5e3be11c9f9db5e57d91546d1c8718e66a6a6964 --- watt/cpu.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/watt/cpu.rs b/watt/cpu.rs index 7246440..b8b72f8 100644 --- a/watt/cpu.rs +++ b/watt/cpu.rs @@ -63,16 +63,6 @@ impl CpuStat { 1.0 - idle_delta / total_delta } - - /// Calculates usage since boot (average utilization). - /// This is the historical average, not current usage. - pub fn usage_average(&self) -> f64 { - let total = self.total() as f64; - if total == 0.0 { - return 0.0; - } - 1.0 - self.idle() as f64 / total - } } #[derive(Default, Debug, Clone)]