diff --git a/src/os/src/darwin/dwSysInfo.c b/src/os/src/darwin/dwSysInfo.c index 10e0acc130..54c6fb1d32 100644 --- a/src/os/src/darwin/dwSysInfo.c +++ b/src/os/src/darwin/dwSysInfo.c @@ -164,6 +164,10 @@ void taosKillSystem() { exit(0); } +int32_t taosGetCpuCores() { + return sysconf(_SC_NPROCESSORS_ONLN); +} + void taosGetSystemInfo() { // taosGetProcInfos(); @@ -185,12 +189,25 @@ void taosGetSystemInfo() { taosGetSystemLocale(); } +bool taosReadProcIO(int64_t *rchars, int64_t *wchars) { + if (rchars) *rchars = 0; + if (wchars) *wchars = 0; + return true; +} + bool taosGetProcIO(float *readKB, float *writeKB) { *readKB = 0; *writeKB = 0; return true; } +bool taosGetCardInfo(int64_t *bytes, int64_t *rbytes, int64_t *tbytes) { + if (bytes) *bytes = 0; + if (rbytes) *rbytes = 0; + if (tbytes) *tbytes = 0; + return true; +} + bool taosGetBandSpeed(float *bandSpeedKb) { *bandSpeedKb = 0; return true;