diff options
-rw-r--r-- | src/gallium/auxiliary/hud/hud_sensors_temp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_sensors_temp.c b/src/gallium/auxiliary/hud/hud_sensors_temp.c index c26e7b9b2a7..c226e89cc42 100644 --- a/src/gallium/auxiliary/hud/hud_sensors_temp.c +++ b/src/gallium/auxiliary/hud/hud_sensors_temp.c @@ -122,6 +122,9 @@ get_sensor_values(struct sensors_temp_info *sti) case SENSORS_POWER_CURRENT: sf = sensors_get_subfeature(sti->chip, sti->feature, SENSORS_SUBFEATURE_POWER_INPUT); + if (!sf) + sf = sensors_get_subfeature(sti->chip, sti->feature, + SENSORS_SUBFEATURE_POWER_AVERAGE); if (sf) { /* Sensors API returns in WATTs, even though driver is reporting mW, * convert back to mW */ |