why?
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user