build on mac

This commit is contained in:
xsren 2024-09-13 07:19:11 +08:00
parent 2643d7ad63
commit 466e0b5f8e
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ int32_t taosGetCpuCores(float *numOfCores, bool physical) {
if(*numOfCores <= 0) { if(*numOfCores <= 0) {
return TAOS_SYSTEM_ERROR(errno); return TAOS_SYSTEM_ERROR(errno);
} }
return; return 0;
#else #else
if (physical) { if (physical) {
*numOfCores = sysconf(_SC_NPROCESSORS_ONLN); *numOfCores = sysconf(_SC_NPROCESSORS_ONLN);