From 372f29631ed9687867c049f39b36d0f83aa8a461 Mon Sep 17 00:00:00 2001 From: Xiaosu Lyu Date: Thu, 27 Oct 2022 20:32:29 +0000 Subject: [PATCH] forgot submitting include/http_route_total.h to remove atomic variables --- runtime/include/http_route_total.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/include/http_route_total.h b/runtime/include/http_route_total.h index 8f30579c..d8ce7655 100644 --- a/runtime/include/http_route_total.h +++ b/runtime/include/http_route_total.h @@ -29,7 +29,7 @@ static inline void http_route_total_increment_request(struct http_route_total *rm) { #ifdef HTTP_ROUTE_TOTAL_COUNTERS - atomic_fetch_add(&rm->total_requests, 1); + //atomic_fetch_add(&rm->total_requests, 1); #endif } @@ -37,12 +37,12 @@ static inline void http_route_total_increment(struct http_route_total *rm, int status_code) { #ifdef HTTP_ROUTE_TOTAL_COUNTERS - if (status_code >= 200 && status_code <= 299) { + /*if (status_code >= 200 && status_code <= 299) { atomic_fetch_add(&rm->total_2XX, 1); } else if (status_code >= 400 && status_code <= 499) { atomic_fetch_add(&rm->total_4XX, 1); } else if (status_code >= 500 && status_code <= 599) { atomic_fetch_add(&rm->total_5XX, 1); - } + }*/ #endif }