rename funcs, move get_val

This commit is contained in:
2025-12-14 14:45:06 +01:00
parent cd94018426
commit a271711441
5 changed files with 28 additions and 29 deletions

View File

@@ -46,7 +46,7 @@ void updateFromFs(gpuSensors* g) {
/* get sensors for vega and newer (rx5700xt, rx7800xt [*]) */
void updateFromMetrics(gpuSensors* g) {
char raw_metrics[MAX_METRICS_LENGTH];
if (!readFile2(g->hwmon + REL_METRICS_PATH, raw_metrics, sizeof(raw_metrics))) return;
if (!readFile(g->hwmon + REL_METRICS_PATH, raw_metrics, sizeof(raw_metrics))) return;
auto header = reinterpret_cast<metrics::metrics_table_header*>(raw_metrics);
switch (header->format_revision * 10 + header->content_revision) {