aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
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
commit6901ac4b4f1bdd022543badd349e21f6c6ea6988 (patch)
tree790e681149baca54c2c26bfce5c151da7c90a971 /src/utils
parentde2e6017f5ad0c6d3d6894d64b19c8da4dfe82d0 (diff)
cputemp configurable path
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/cpu.rs2
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")),
};