From a4e602371385cf8978551603ce1fe57504f356c8 Mon Sep 17 00:00:00 2001 From: Echo J Date: Sun, 22 Dec 2024 08:43:52 +0200 Subject: [PATCH] Add basic Elbrus CPU temperature support This currently hardcodes the node number (and there might be other temperature labels and even other temperature modules judging by some scripts in Rumia) --- src/cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu.cpp b/src/cpu.cpp index 89c082db5e..eaedf28ee5 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -537,6 +537,9 @@ bool CPUStats::GetCpuFile() { // Only break if module has CPU node if (find_input(path, "temp", input, "CPU")) break; + } else if (name == "l_pcs") { // Elbrus temperature module + find_input(path, "temp", input, "Node 0 Max"); + break; } else { path.clear(); }