Merge branch 'upstream-KWSys' into update-kwsys

# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-02-10 (2e2f80f1)
This commit is contained in:
Brad King 2025-02-10 08:27:08 -05:00
commit 0938643895

View File

@ -5131,7 +5131,11 @@ bool SystemInformationImplementation::QueryBSDProcessor()
defined(__DragonFly__)
int k;
size_t sz = sizeof(k);
# ifdef HW_NCPUONLINE
int ctrl[2] = { CTL_HW, HW_NCPUONLINE };
# else
int ctrl[2] = { CTL_HW, HW_NCPU };
# endif
if (sysctl(ctrl, 2, &k, &sz, nullptr, 0) != 0) {
return false;