diff --git a/src/cpu.cpp b/src/cpu.cpp index b8b0dbf..65949c9 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include #include #include @@ -12,8 +11,7 @@ void detectHwmon(cpuSensors* target, std::string pci) { std::string path = "/sys/bus/pci/devices/" + pci + "/hwmon"; try { - for (const auto& entry : std::filesystem::directory_iterator(path)) - target->hwmon = getFirstDir(path); + target->hwmon = getFirstDir(path); } catch (...) { log(LOG::ERR, "cpu::detectHwmon", "NO CPU HWMON KERNEL MODULE DETECTED"); return;