Linux: Use sensible sensor name.

This commit is contained in:
Alastair Poole 2020-06-18 18:37:51 +01:00
parent 8d1d9a7aaf
commit dfc32faee8
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ system_sensors_thermal_get(int *sensor_count)
sensors[(*sensor_count)++] =
sensor = calloc(1, sizeof(sensor_t));
sensor->name = strdup(names[i]->d_name);
sensor->name = strdup(type);
snprintf(path, sizeof(path), "/sys/class/thermal/%s/temp",
names[i]->d_name);