From 977c67d5d129cc7fc1d9bb9b994d473d4ec38d58 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 10 Nov 2021 13:29:23 +0800 Subject: [PATCH] fixed mac compilation error --- src/os/src/darwin/dwSysInfo.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/os/src/darwin/dwSysInfo.c b/src/os/src/darwin/dwSysInfo.c index f3a64c382e..b6855ac284 100644 --- a/src/os/src/darwin/dwSysInfo.c +++ b/src/os/src/darwin/dwSysInfo.c @@ -199,9 +199,11 @@ bool taosReadProcIO(int64_t *rchars, int64_t *wchars, int64_t *rbytes, int64_t * return true; } -bool taosGetProcIO(float *readKB, float *writeKB) { - *readKB = 0; - *writeKB = 0; +bool taosGetProcIO(float *rcharKB, float *wcharKB, float *rbyteKB, float *wbyteKB) { + *rcharKB = 0; + *wcharKB = 0; + *rbyteKB = 0; + *wbyteKB = 0; return true; } -- GitLab