From 758f64ced452382744859aa3881757c1b86c1773 Mon Sep 17 00:00:00 2001 From: leukipp Date: Wed, 10 Sep 2025 15:49:22 +0200 Subject: [PATCH] ref: add cpu thermal zone --- js/hardware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/hardware.js b/js/hardware.js index 6d99816..e927d9d 100644 --- a/js/hardware.js +++ b/js/hardware.js @@ -372,7 +372,7 @@ const getProcessorTemperature = () => { continue; } const type = fs.readFileSync(typeFile, "utf8").trim(); - if (["cpu-thermal", "x86_pkg_temp", "k10temp", "acpitz"].includes(type)) { + if (["cpu-thermal", "x86_pkg_temp", "k10temp", "acpitz", "cpu"].includes(type)) { return parseFloat(fs.readFileSync(tempFile, "utf8").trim()) / 1000; } }