diff --git a/src/cpu.cpp b/src/cpu.cpp index 4b98273..cde5597 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -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); }