From 058ef997c6716c49ecf7d09cc495440b994b4565 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 21 May 2025 00:28:06 +0300 Subject: [PATCH] cpu: add TODO --- src/cpu.rs | 2 ++ 1 file changed, 2 insertions(+) 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")?;