- Fix num.expired statistics output.

This commit is contained in:
W.C.A. Wijngaards 2020-09-09 11:44:44 +02:00
parent afbc7bb4fe
commit 82f2ee63c5
2 changed files with 4 additions and 0 deletions

View file

@ -271,6 +271,7 @@ server_stats_compile(struct worker* worker, struct ub_stats_info* s, int reset)
s->svr.ans_secure += (long long)worker->env.mesh->ans_secure; s->svr.ans_secure += (long long)worker->env.mesh->ans_secure;
s->svr.ans_bogus += (long long)worker->env.mesh->ans_bogus; s->svr.ans_bogus += (long long)worker->env.mesh->ans_bogus;
s->svr.ans_rcode_nodata += (long long)worker->env.mesh->ans_nodata; s->svr.ans_rcode_nodata += (long long)worker->env.mesh->ans_nodata;
s->svr.ans_expired += (long long)worker->env.mesh->ans_expired;
for(i=0; i<UB_STATS_RCODE_NUM; i++) for(i=0; i<UB_STATS_RCODE_NUM; i++)
s->svr.ans_rcode[i] += (long long)worker->env.mesh->ans_rcode[i]; s->svr.ans_rcode[i] += (long long)worker->env.mesh->ans_rcode[i];
for(i=0; i<UB_STATS_RPZ_ACTION_NUM; i++) for(i=0; i<UB_STATS_RPZ_ACTION_NUM; i++)

View file

@ -1,3 +1,6 @@
9 September 2020: Wouter
- Fix num.expired statistics output.
31 August 2020: Wouter 31 August 2020: Wouter
- Merge PR #293: Add missing prototype. Also refactor to use the new - Merge PR #293: Add missing prototype. Also refactor to use the new
shorthand function to clean up the code. shorthand function to clean up the code.