diff options
author | Özgür Kesim <oec@codeblau.de> | 2022-01-29 23:23:11 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2022-01-29 23:23:11 +0100 |
commit | 6901ac4b4f1bdd022543badd349e21f6c6ea6988 (patch) | |
tree | 790e681149baca54c2c26bfce5c151da7c90a971 /src/utils | |
parent | de2e6017f5ad0c6d3d6894d64b19c8da4dfe82d0 (diff) |
cputemp configurable path
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/cpu.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/cpu.rs b/src/utils/cpu.rs index f49fda0..cb94f0d 100644 --- a/src/utils/cpu.rs +++ b/src/utils/cpu.rs @@ -4,7 +4,7 @@ use std::fs::read_to_string; // getting cpu temperature pub async fn get_cpu_temp() -> ThreadsData { - let buf = match read_to_string("/sys/class/thermal/thermal_zone0/temp") { + let buf = match read_to_string(&CONFIG.cpu_temperature.path) { Ok(data) => data, _ => return ThreadsData::CpuTemp(String::from("Error reading temp")), }; |