projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7ac0c53
)
fixed type label for nvidia temperature
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sat, 31 May 2014 21:54:25 +0000
(23:54 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sat, 31 May 2014 21:54:25 +0000
(23:54 +0200)
src/lib/psensor.c
patch
|
blob
|
history
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)
{
- 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)