From cbad709705e233417f547a1010199c9c74524d26 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 16 Nov 2021 11:43:30 +0800 Subject: [PATCH] fix windows compilation errror --- src/inc/http.h | 3 +-- src/plugins/http/src/httpSystem.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/inc/http.h b/src/inc/http.h index 1da12be196..7333042641 100644 --- a/src/inc/http.h +++ b/src/inc/http.h @@ -22,8 +22,7 @@ extern "C" { #include -int32_t httpGetReqCount(); -int32_t httpClearReqCount(); +int64_t httpGetReqCount(); int32_t httpGetStatusCodeCount(int index); int32_t httpClearStatusCodeCount(int index); int32_t httpInitSystem(); diff --git a/src/plugins/http/src/httpSystem.c b/src/plugins/http/src/httpSystem.c index e2ae3a9a31..1e388541ac 100644 --- a/src/plugins/http/src/httpSystem.c +++ b/src/plugins/http/src/httpSystem.c @@ -120,7 +120,7 @@ void httpCleanUpSystem() { tsHttpServer.status = HTTP_SERVER_CLOSED; } -int32_t httpGetReqCount() { return atomic_exchange_64(&tsHttpServer.requestNum, 0); } +int64_t httpGetReqCount() { return atomic_exchange_64(&tsHttpServer.requestNum, 0); } int32_t httpGetStatusCodeCount(int index) { return atomic_load_32(&tsHttpServer.statusCodeErrs[index]); } -- GitLab