This commit is contained in:
Calvin Rose 2022-05-28 12:23:28 -05:00
parent 677ae46f0c
commit dfa78ad3c6
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ JANET_CORE_FN(os_cpu_count,
const int name[2] = {CTL_HW, HW_NCPUONLINE};
int result = 0;
size_t len = sizeof(int);
if (-1 == sysctl(name, 2, &result, &len, ,NULL, 0)) {
if (-1 == sysctl(name, 2, &result, &len, NULL, 0)) {
return dflt;
}
return janet_wrap_integer(result);