We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0506c77 + 86127f1 commit 287eba3Copy full SHA for 287eba3
1 file changed
watt/cpu.rs
@@ -63,16 +63,6 @@ impl CpuStat {
63
64
1.0 - idle_delta / total_delta
65
}
66
-
67
- /// Calculates usage since boot (average utilization).
68
- /// This is the historical average, not current usage.
69
- pub fn usage_average(&self) -> f64 {
70
- let total = self.total() as f64;
71
- if total == 0.0 {
72
- return 0.0;
73
- }
74
- 1.0 - self.idle() as f64 / total
75
76
77
78
#[derive(Default, Debug, Clone)]
0 commit comments