From: Jorge Pereira Date: Fri, 23 Oct 2015 18:35:46 +0000 (-0200) Subject: Bugfix - increase a wrong stats-list X-Git-Tag: release_3_0_11~212^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1346%2Fhead;p=thirdparty%2Ffreeradius-server.git Bugfix - increase a wrong stats-list --- diff --git a/src/main/stats.c b/src/main/stats.c index 53a26a31ad..fe1cebcc60 100644 --- a/src/main/stats.c +++ b/src/main/stats.c @@ -330,7 +330,7 @@ void request_stats_final(REQUEST *request) case PW_CODE_COA_NAK: proxy_coa_stats.total_responses++; request->home_server->stats.total_responses++; - stats_time(&proxy_acct_stats, + stats_time(&proxy_coa_stats, &request->proxy->timestamp, &request->proxy_reply->timestamp); stats_time(&request->home_server->stats, @@ -340,9 +340,9 @@ void request_stats_final(REQUEST *request) case PW_CODE_DISCONNECT_ACK: case PW_CODE_DISCONNECT_NAK: - proxy_coa_stats.total_responses++; + proxy_dsc_stats.total_responses++; request->home_server->stats.total_responses++; - stats_time(&proxy_acct_stats, + stats_time(&proxy_dsc_stats, &request->proxy->timestamp, &request->proxy_reply->timestamp); stats_time(&request->home_server->stats,