mirror of
https://github.com/RGBCube/superfreq
synced 2025-07-27 17:07:44 +00:00
cpu: add TODO
This commit is contained in:
parent
1ab9aceced
commit
058ef997c6
1 changed files with 2 additions and 0 deletions
|
@ -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")?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue