diff options
Diffstat (limited to 'daemon/stats.c')
| -rw-r--r-- | daemon/stats.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/stats.c b/daemon/stats.c index a3c3d738976e..3665616be8be 100644 --- a/daemon/stats.c +++ b/daemon/stats.c @@ -232,6 +232,14 @@ void server_stats_add(struct stats_info* total, struct stats_info* a) total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache; total->svr.num_queries_prefetch += a->svr.num_queries_prefetch; total->svr.sum_query_list_size += a->svr.sum_query_list_size; +#ifdef USE_DNSCRYPT + total->svr.num_query_dnscrypt_crypted += a->svr.num_query_dnscrypt_crypted; + total->svr.num_query_dnscrypt_cert += a->svr.num_query_dnscrypt_cert; + total->svr.num_query_dnscrypt_cleartext += \ + a->svr.num_query_dnscrypt_cleartext; + total->svr.num_query_dnscrypt_crypted_malformed += \ + a->svr.num_query_dnscrypt_crypted_malformed; +#endif /* the max size reached is upped to higher of both */ if(a->svr.max_query_list_size > total->svr.max_query_list_size) total->svr.max_query_list_size = a->svr.max_query_list_size; |
