From: Jean-Philippe Orsini Date: Sat, 31 May 2014 21:54:25 +0000 (+0200) Subject: fixed type label for nvidia temperature X-Git-Tag: v1.0.1~10 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=610850610eb55d8c53c198ab9a393b4dbbd64ea6 fixed type label for nvidia temperature --- diff --git a/src/lib/psensor.c b/src/lib/psensor.c index f4d9659..348885a 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -437,8 +437,12 @@ struct psensor **get_all_sensors(int use_libatasmart, int values_max_length) const char *psensor_type_to_str(unsigned int type) { - if (type & SENSOR_TYPE_NVCTRL) - return "NVIDIA GPU"; + if (type & SENSOR_TYPE_NVCTRL) { + if (type & SENSOR_TYPE_TEMP) + return "NVIDIA GPU Temperature"; + else + return "NVIDIA GPU"; + } if (type & SENSOR_TYPE_ATIADL) { if (type & SENSOR_TYPE_TEMP)