get rid of read to str

This commit is contained in:
2025-12-14 15:02:23 +01:00
parent a271711441
commit bc3f911f60
4 changed files with 9 additions and 16 deletions

View File

@@ -16,7 +16,8 @@ void detectHwmon(cpuSensors* target, std::string pci) {
log(LOG::ERR, "cpu::detectHwmon", "NO CPU HWMON KERNEL MODULE DETECTED");
return;
}
target->zenpower = readFileToStr((target->hwmon + "/name"), 128) == "zenpower";
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?)
log(LOG::INF, "cpu::detectHwmon", "Detected module \"{}\" in path \"{}\"", target->zenpower ? "zenpower" : "k10temp", target->hwmon);
}