Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2025-02-10 (2e2f80f1)
This commit is contained in:
commit
0938643895
@ -5131,7 +5131,11 @@ bool SystemInformationImplementation::QueryBSDProcessor()
|
|||||||
defined(__DragonFly__)
|
defined(__DragonFly__)
|
||||||
int k;
|
int k;
|
||||||
size_t sz = sizeof(k);
|
size_t sz = sizeof(k);
|
||||||
|
# ifdef HW_NCPUONLINE
|
||||||
|
int ctrl[2] = { CTL_HW, HW_NCPUONLINE };
|
||||||
|
# else
|
||||||
int ctrl[2] = { CTL_HW, HW_NCPU };
|
int ctrl[2] = { CTL_HW, HW_NCPU };
|
||||||
|
# endif
|
||||||
|
|
||||||
if (sysctl(ctrl, 2, &k, &sz, nullptr, 0) != 0) {
|
if (sysctl(ctrl, 2, &k, &sz, nullptr, 0) != 0) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user