Added support for some NVML sensors.
GPU temp sensor and clock reasons.
This commit is contained in:
@@ -89,11 +89,11 @@ void print_icx3_temps_oneline(struct card_info *card)
|
||||
get_temp_sensors(temps, card);
|
||||
|
||||
for (int i=0; i<ICX3_NUM_TEMP_SENSORS; i++) {
|
||||
if (i == 0 || strncmp(icx3_temp_sensor_names[i], icx3_temp_sensor_names[i-1], 3))
|
||||
/* If this math seems a little jank, it's so we can optionally inject the NVML and vram temps into the oneline */
|
||||
if (i > 0 && strncmp(icx3_temp_sensor_names[i], icx3_temp_sensor_names[i-1], 3))
|
||||
printf(" %.3s", icx3_temp_sensor_names[i]);
|
||||
printf(" %3.0f", temps[i]);
|
||||
}
|
||||
printf("°C");
|
||||
}
|
||||
|
||||
void get_available_fans(char *fans_avail, struct card_info *card)
|
||||
|
||||
Reference in New Issue
Block a user