aboutsummaryrefslogtreecommitdiff
path: root/src/utils/cpu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/cpu.rs')
-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")),
};