projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed type label for nvidia temperature
[psensor.git]
/
src
/
lib
/
psensor.c
diff --git
a/src/lib/psensor.c
b/src/lib/psensor.c
index
f4d9659
..
348885a
100644
(file)
--- 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)
{
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)
if (type & SENSOR_TYPE_ATIADL) {
if (type & SENSOR_TYPE_TEMP)