From 9657523f3eec8ab70d8398c8aefedbb50537920b Mon Sep 17 00:00:00 2001 From: Drath Date: Sun, 2 Nov 2025 14:59:57 +0100 Subject: [PATCH] why? --- src/cpu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;