This commit is contained in:
Drath
2025-11-02 14:59:57 +01:00
parent 36c9033cd2
commit 9657523f3e

View File

@@ -1,7 +1,6 @@
#include <chrono>
#include <cpu.hpp>
#include <cstdint>
#include <filesystem>
#include <log.hpp>
#include <string>
#include <utils.hpp>
@@ -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;