Skip to content

Commit

Permalink
Bugfix - increase a wrong stats-list
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira authored and alandekok committed Oct 23, 2015
1 parent 5bac2dc commit 4ad6c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/stats.c
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 4ad6c60

Please sign in to comment.