From 610850610eb55d8c53c198ab9a393b4dbbd64ea6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sat, 31 May 2014 23:54:25 +0200 Subject: [PATCH] fixed type label for nvidia temperature --- src/lib/psensor.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.7.4