hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f336caac9085a3b8c43aaf953b50f3855f85e935
parent 901444ae276c91a8122448b53bca9a1d3defb15f
Author: Josiah Frentsos <jfrent@tilde.team>
Date:   Fri,  1 Dec 2023 18:26:33 -0500

OpenBSD: os::cpucount: Return the number of online CPUs

Signed-off-by: Josiah Frentsos <jfrent@tilde.team>

Diffstat:
Mos/+openbsd/platform_environ.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/+openbsd/platform_environ.ha b/os/+openbsd/platform_environ.ha @@ -90,7 +90,7 @@ export fn machine() const str = { // Returns the number of usable CPUs. export fn cpucount() (size | errors::error) = { - let name: [2]int = [rt::CTL_HW, rt::HW_NCPU]; + let name: [2]int = [rt::CTL_HW, rt::HW_NCPUONLINE]; let ncpu: int = 0; let ncpu_sz = size(int);