1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

cpu: add TODO

This commit is contained in:
RGBCube 2025-05-21 00:28:06 +03:00
parent 1ab9aceced
commit 058ef997c6
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -120,6 +120,8 @@ impl Cpu {
} }
fn rescan_times(&mut self) -> anyhow::Result<()> { 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") let content = fs::read("/proc/stat")
.context("/proc/stat does not exist")? .context("/proc/stat does not exist")?
.context("failed to read CPU stat")?; .context("failed to read CPU stat")?;