fixed type label for nvidia temperature
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 31 May 2014 21:54:25 +0000 (23:54 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 31 May 2014 21:54:25 +0000 (23:54 +0200)
src/lib/psensor.c

index f4d9659..348885a 100644 (file)
@@ -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)