Skip to content

Commit 3529355

Browse files
author
Noam Preil
committed
9front: support (os/cpu-count)
1 parent dc52242 commit 3529355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/os.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ JANET_CORE_FN(os_cpu_count,
354354
return dflt;
355355
}
356356
return janet_wrap_integer(result);
357+
#elif defined(JANET_PLAN9)
358+
return janet_wrap_integer(atoi(getenv("NPROC")));
357359
#else
358360
return dflt;
359361
#endif

0 commit comments

Comments
 (0)