diff --git a/src/cpu.cpp b/src/cpu.cpp index 1f02d59..e15a1a9 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -17,7 +17,7 @@ void detectHwmon(cpuSensors* target, const std::string& pci) { return; } - target->zenpower = false; // we were using readFileToStr to figure this out, we dont f/w it anymore, find another way (see if hwmon/in1_input exists?) + target->zenpower = utils::fileExists(target->hwmon+ "/in1_input"); // idk if this is reliable, we're trying to avoid just reading the name applog(LOG::INF, "Detected module \"{}\" in path \"{}\"", target->zenpower ? "zenpower" : "k10temp", target->hwmon); }