patch from rustyBSD with tempget fixes

SVN revision: 79136
This commit is contained in:
Mike Blumenkrantz 2012-11-12 08:40:35 +00:00
parent e34a70334f
commit 8567e132c9
1 changed files with 2 additions and 1 deletions

View File

@ -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;