From: Jakob Hirsch Date: Wed, 6 Mar 2013 17:34:52 +0000 (+0100) Subject: don't count status server requests in internal stats X-Git-Tag: release_3_0_0_beta1~809^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0c2a2483bd325d0d35e9ad1feb6be01e096316;p=thirdparty%2Ffreeradius-server.git 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 --- 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++;