forked from enlightenment/enlightenment
parent
a824c8a731
commit
a7b95ba2ef
|
@ -276,6 +276,7 @@ check(void)
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
int len;
|
int len;
|
||||||
|
size_t ftemp = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TODO: Make standard parser. Seems to be two types of temperature string:
|
/* TODO: Make standard parser. Seems to be two types of temperature string:
|
||||||
|
@ -290,9 +291,9 @@ check(void)
|
||||||
case SENSOR_TYPE_FREEBSD:
|
case SENSOR_TYPE_FREEBSD:
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
len = sizeof(temp);
|
len = sizeof(temp);
|
||||||
if (sysctl(mib, 5, &temp, &len, NULL, 0) != -1)
|
if (sysctl(mib, 5, &ftemp, &len, NULL, 0) != -1)
|
||||||
{
|
{
|
||||||
temp = (temp - 2732) / 10;
|
temp = (ftemp - 2732) / 10;
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue