get rid of macros

This commit is contained in:
2026-01-01 16:34:24 +01:00
parent bceabf26cd
commit adac422179
2 changed files with 3 additions and 4 deletions

View File

@@ -9,6 +9,9 @@
namespace gpu {
const std::string rel_metrics_path = "/../../gpu_metrics"; // gpu_metrics path relative to hwmon path
constexpr uint16_t max_metrics_length = 512; // length of the metrics buffer
/* takes pointer to a target gpu::sensors struct and updates its hwmon path and detects gpu_metrics */
void detectHwmon(gpuSensors* target, const std::string& pci) {
target->hwmon = utils::getFirstDir("/sys/bus/pci/devices/" + pci + "/hwmon");