gonna need to refactor

This commit is contained in:
Drath
2025-09-13 23:54:41 +02:00
parent 91f07992cd
commit 9bcec42145
2 changed files with 39 additions and 11 deletions

View File

@@ -7,6 +7,8 @@
#include <string>
#include <utils.hpp>
#define REL_METRICS_PATH = "/../../gpu_metrics"
struct gpu_t {
uint16_t fan_speed = 0;
uint16_t core_clock = 0;
@@ -37,7 +39,7 @@ struct GpuMetricsHeader_t {
std::string detectGpuHwmon(std::string pci);
gpu_t getGpu(GpuMetricsHeader_t header, std::string hw);
gpu_t getGpu(std::string hw);
gpu_t getGpu(std::string hw, bool hasMetrics);
GpuMetricsHeader_t getGpuMetricsHeader(std::string path);
#endif