patch from rustyBSD with tempget fixes
SVN revision: 79136
This commit is contained in:
parent
e34a70334f
commit
8567e132c9
|
@ -343,7 +343,7 @@ init(void)
|
||||||
break;
|
break;
|
||||||
case SENSOR_TYPE_LINUX_SYS:
|
case SENSOR_TYPE_LINUX_SYS:
|
||||||
snprintf(path, sizeof(path),
|
snprintf(path, sizeof(path),
|
||||||
"/sys/class/thermal/thermal/%s/temp", sensor_name);
|
"/sys/class/thermal/%s/temp", sensor_name);
|
||||||
sensor_path = strdup(path);
|
sensor_path = strdup(path);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -508,6 +508,7 @@ check(void)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
temp = atoi(buf);
|
temp = atoi(buf);
|
||||||
temp /= 1000;
|
temp /= 1000;
|
||||||
|
ret = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue