aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/tempget.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-12 08:40:35 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-12 08:40:35 +0000
commit8567e132c92cd4070772be7cc6c43a83453fcc3c (patch)
tree6c2008ba1a6f45d73f90970ab4649924def59260 /src/modules/temperature/tempget.c
parentthar be clock theme fun... in e17. (diff)
downloadenlightenment-8567e132c92cd4070772be7cc6c43a83453fcc3c.tar.gz
patch from rustyBSD with tempget fixes
SVN revision: 79136
Diffstat (limited to 'src/modules/temperature/tempget.c')
-rw-r--r--src/modules/temperature/tempget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/temperature/tempget.c b/src/modules/temperature/tempget.c
index 3a1c34630..ffbfb7fa3 100644
--- a/src/modules/temperature/tempget.c
+++ b/src/modules/temperature/tempget.c
@@ -343,7 +343,7 @@ init(void)
break;
case SENSOR_TYPE_LINUX_SYS:
snprintf(path, sizeof(path),
- "/sys/class/thermal/thermal/%s/temp", sensor_name);
+ "/sys/class/thermal/%s/temp", sensor_name);
sensor_path = strdup(path);
break;
default:
@@ -508,6 +508,7 @@ check(void)
fclose(f);
temp = atoi(buf);
temp /= 1000;
+ ret = 1;
}
else
goto error;