make it more or less work with 'warning_level=everything'
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
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 fill_missing_metrics(struct gpu_sensors_t *g);
|
||||
void update_from_fs(struct gpu_sensors_t *g);
|
||||
void update_from_metrics(struct gpu_sensors_t *g);
|
||||
|
||||
void gpu_detect(struct gpu_sensors_t *t, const char *pci) {
|
||||
snprintf(t->hwmon, sizeof(t->hwmon), "/sys/bus/pci/devices/%s/hwmon", pci);
|
||||
const int ret = get_hwmon_dir(t->hwmon, sizeof(t->hwmon));
|
||||
@@ -60,7 +64,7 @@ void update_from_metrics(struct gpu_sensors_t *g) {
|
||||
|
||||
switch (header->format_revision * 10 + header->content_revision) {
|
||||
|
||||
/* rx5700xt, rx7800xtx rx9070xt */
|
||||
/* rx5700xt, rx7800xt, rx9070xt */
|
||||
case 13: {
|
||||
const struct gpu_metrics_v1_3 *metrics = (struct gpu_metrics_v1_3 *)raw_metrics;
|
||||
g->usage_core = metrics->average_gfx_activity;
|
||||
|
||||
Reference in New Issue
Block a user