[TD-5861]<feature>:fix mac os compilation error
This commit is contained in:
parent
89b88caae0
commit
ae4547db86
|
@ -164,6 +164,10 @@ void taosKillSystem() {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t taosGetCpuCores() {
|
||||||
|
return sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
|
}
|
||||||
|
|
||||||
void taosGetSystemInfo() {
|
void taosGetSystemInfo() {
|
||||||
// taosGetProcInfos();
|
// taosGetProcInfos();
|
||||||
|
|
||||||
|
@ -185,12 +189,25 @@ void taosGetSystemInfo() {
|
||||||
taosGetSystemLocale();
|
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) {
|
bool taosGetProcIO(float *readKB, float *writeKB) {
|
||||||
*readKB = 0;
|
*readKB = 0;
|
||||||
*writeKB = 0;
|
*writeKB = 0;
|
||||||
return true;
|
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) {
|
bool taosGetBandSpeed(float *bandSpeedKb) {
|
||||||
*bandSpeedKb = 0;
|
*bandSpeedKb = 0;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue