sensors: fix fbsd sysctl name

This commit is contained in:
Alastair Poole 2020-12-26 21:15:14 +00:00
parent 848702494e
commit 81051b4a63
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ system_sensors_thermal_get(int *sensor_count)
void *tmp = realloc(sensors, (1 + *sensor_count) * sizeof(sensor_t *));
sensors = tmp;
sensors[(*sensor_count)++] = sensor = calloc(1, sizeof(sensor_t));
sensor->name = strdup("hw.acpi.thermal.tz0");
sensor->name = strdup("hw.acpi.thermal.tz0.temperature");
sensor->value = (float) (value - 2732) / 10;
}