c23ify
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
#include "log.h"
|
||||
#include "utils.h"
|
||||
|
||||
const char rel_metrics_path[] = "/../../gpu_metrics"; // gpu_metrics path relative to hwmon path
|
||||
const uint16_t max_metrics_length = 512; // length of the metrics buffer
|
||||
constexpr char rel_metrics_path[] = "/../../gpu_metrics"; // gpu_metrics path relative to hwmon path
|
||||
constexpr uint16_t max_metrics_length = 512; // length of the metrics buffer
|
||||
|
||||
void gpu_detect(struct gpu_sensors_t *t, const char *pci) {
|
||||
snprintf(t->hwmon, sizeof(t->hwmon), "/sys/bus/pci/devices/%s/hwmon", pci);
|
||||
|
||||
Reference in New Issue
Block a user