From ffd8ab03d5401f2f10a0bb446c2c8fc56ed56507 Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao@163.com> Date: Wed, 23 Nov 2022 13:50:12 +0800 Subject: [PATCH] support aarch64 --- src/os/src/detail/osSysinfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/os/src/detail/osSysinfo.c b/src/os/src/detail/osSysinfo.c index ba3301747c..7004018835 100644 --- a/src/os/src/detail/osSysinfo.c +++ b/src/os/src/detail/osSysinfo.c @@ -466,6 +466,13 @@ bool taosGetNetworkIO(float *netInKb, float *netOutKb) { } bool taosReadProcIO(int64_t *rchars, int64_t *wchars, int64_t *rbytes, int64_t *wbytes) { +#if defined _TD_ARM_ + if (rchars) *rchars = 0; + if (wchars) *wchars = 0; + if (rbytes) *rbytes = 0; + if (wbytes) *wbytes = 0; + return true; +#else FILE *fp = fopen(tsProcIOFile, "r"); if (fp == NULL) { uError("open file:%s failed", tsProcIOFile); @@ -511,6 +518,7 @@ bool taosReadProcIO(int64_t *rchars, int64_t *wchars, int64_t *rbytes, int64_t * } return true; +#endif } bool taosGetProcIO(float *rcharKB, float *wcharKB, float *rbyteKB, float *wbyteKB) { -- GitLab