瀏覽代碼

Update os_haiku.odin

avanspector 1 年之前
父節點
當前提交
31d7ef5696
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/os/os_haiku.odin

+ 3 - 1
core/os/os_haiku.odin

@@ -424,5 +424,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
 
 @(private)
 _processor_core_count :: proc() -> int {
-	return int(_sysconf(_SC_NPROCESSORS_ONLN))
+	info: haiku.system_info
+	haiku.get_system_info(&info)
+	return int(info.cpu_count)
 }