build on mac
This commit is contained in:
parent
2643d7ad63
commit
466e0b5f8e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue