This commit is contained in:
2026-01-02 19:21:26 +01:00
parent 3a9b2647d1
commit c0a2c338ee

View File

@@ -18,8 +18,7 @@ void detectHwmon(cpuSensors* target, const std::string& pci) {
return;
}
if (utils::fileExists(target->hwmon + "/in1_input")) // idk if this is reliable, we're trying to avoid just reading the name
target->module = k10temp;
target->module = utils::fileExists(target->hwmon + "/in1_input") ? zenpower : k10temp; // idk if this is reliable, we're trying to avoid just reading the name
applog(LOG::INF, "Detected module no. {} in path \"{}\"", target->module ? "zenpower" : "k10temp", target->hwmon);
}