ref: add cpu thermal zone

This commit is contained in:
leukipp
2025-09-10 15:49:22 +02:00
parent 7ab803d4ca
commit 758f64ced4
+1 -1
View File
@@ -372,7 +372,7 @@ const getProcessorTemperature = () => {
continue; continue;
} }
const type = fs.readFileSync(typeFile, "utf8").trim(); 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; return parseFloat(fs.readFileSync(tempFile, "utf8").trim()) / 1000;
} }
} }