diff --git a/src/inc/http.h b/src/inc/http.h index 1da12be1967a52616e52f9bf54fa2ee45a08b690..7333042641a8f7bda1574e77e373c7e9a258751d 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 e2ae3a9a31a2b98d08106698649653c63d8ee888..1e388541acf825e4852443bd385c08832b03147a 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]); }