Fix typo in temperature
This commit is contained in:
parent
4113a39ee6
commit
c3ce506b7f
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ temp(const char *null)
|
||||||
|
|
||||||
size = sizeof(temp);
|
size = sizeof(temp);
|
||||||
|
|
||||||
if (sysctl(mib, 5, &temp, &sz, NULL, 0) == -1) {
|
if (sysctl(mib, 5, &temp, &size, NULL, 0) == -1) {
|
||||||
fprintf(stderr, "sysctl 'SENSOR_TEMP': %s\n", strerror(errno));
|
fprintf(stderr, "sysctl 'SENSOR_TEMP': %s\n", strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue