From 7c0c2a2483bd325d0d35e9ad1feb6be01e096316 Mon Sep 17 00:00:00 2001 From: Jakob Hirsch Date: Wed, 6 Mar 2013 18:34:52 +0100 Subject: [PATCH] don't count status server requests in internal stats Requests to to status server should not be added to the internal counters, notably the Access-Accept replies. See also the thread in http://lists.freeradius.org/pipermail/freeradius-devel/2013-March/007801.html --- src/main/stats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/stats.c b/src/main/stats.c index 4604d04c970..21af78b719d 100644 --- a/src/main/stats.c +++ b/src/main/stats.c @@ -127,6 +127,10 @@ void request_stats_final(REQUEST *request) #endif (request->listener->type != RAD_LISTEN_AUTH)) return; + /* don't count statistic requests */ + if (request->packet->code == PW_STATUS_SERVER) + return; + #undef INC_AUTH #define INC_AUTH(_x) radius_auth_stats._x++;request->listener->stats._x++;request->client->auth._x++; -- 2.47.3