diff --git a/src/cpu.rs b/src/cpu.rs index 2e0db57..736008a 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -120,6 +120,8 @@ impl Cpu { } fn rescan_times(&mut self) -> anyhow::Result<()> { + // TODO: Don't read this per CPU. Share the read or + // find something in /sys/.../cpu{N} that does it. let content = fs::read("/proc/stat") .context("/proc/stat does not exist")? .context("failed to read CPU stat")?;