netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=dfc32faee82f2cb58f8c8846dcf29b2ef01d9d6f

commit dfc32faee82f2cb58f8c8846dcf29b2ef01d9d6f
Author: Alastair Poole <[email protected]>
Date:   Thu Jun 18 18:37:51 2020 +0100

    Linux: Use sensible sensor name.
---
 src/bin/system/machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/system/machine.c b/src/bin/system/machine.c
index beeff18..07e844a 100644
--- a/src/bin/system/machine.c
+++ b/src/bin/system/machine.c
@@ -712,7 +712,7 @@ system_sensors_thermal_get(int *sensor_count)
              sensors[(*sensor_count)++] =
                  sensor = calloc(1, sizeof(sensor_t));
 
-             sensor->name = strdup(names[i]->d_name);
+             sensor->name = strdup(type);
              snprintf(path, sizeof(path), "/sys/class/thermal/%s/temp",
                       names[i]->d_name);
 

-- 


Reply via email to