This commit is contained in:
2026-07-01 01:50:02 +02:00
parent 86da8434bd
commit 29c14dc56f
11 changed files with 48 additions and 52 deletions

View File

@@ -3,7 +3,6 @@
#include "utils.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
@@ -19,7 +18,7 @@ void cpu_detect(struct cpu_sensors_t *t, const char *pci_dev) {
return;
}
t->module = read_file(t->hwmon, "/in1_input", NULL, 0) ? zenpower : k10temp; // if we can read zenpower file then zenpower. idk if this is reliable, we're trying to avoid just reading the name
t->module = read_file(t->hwmon, "/in1_input", nullptr, 0) ? zenpower : k10temp; // if we can read zenpower file then zenpower. idk if this is reliable, we're trying to avoid just reading the name
applog(LOG_INF, "Detected %d cores, module enum #%d in path %s", t->num_cores, t->module, t->hwmon);
}