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 2047a07..f49fda0 100644
--- a/src/utils/cpu.rs
+++ b/src/utils/cpu.rs
@@ -3,7 +3,7 @@ use crate::types::ThreadsData;
use std::fs::read_to_string;
// getting cpu temperature
-pub fn get_cpu_temp() -> ThreadsData {
+pub async fn get_cpu_temp() -> ThreadsData {
let buf = match read_to_string("/sys/class/thermal/thermal_zone0/temp") {
Ok(data) => data,
_ => return ThreadsData::CpuTemp(String::from("Error reading temp")),