Lines Matching refs:total

401 void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a)
403 total->svr.num_queries += a->svr.num_queries;
404 total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited;
405 total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache;
406 total->svr.num_queries_prefetch += a->svr.num_queries_prefetch;
407 total->svr.sum_query_list_size += a->svr.sum_query_list_size;
408 total->svr.ans_expired += a->svr.ans_expired;
410 total->svr.num_query_dnscrypt_crypted += a->svr.num_query_dnscrypt_crypted;
411 total->svr.num_query_dnscrypt_cert += a->svr.num_query_dnscrypt_cert;
412 total->svr.num_query_dnscrypt_cleartext += \
414 total->svr.num_query_dnscrypt_crypted_malformed += \
418 if(a->svr.max_query_list_size > total->svr.max_query_list_size)
419 total->svr.max_query_list_size = a->svr.max_query_list_size;
423 total->svr.qtype_big += a->svr.qtype_big;
424 total->svr.qclass_big += a->svr.qclass_big;
425 total->svr.qtcp += a->svr.qtcp;
426 total->svr.qtcp_outgoing += a->svr.qtcp_outgoing;
427 total->svr.qtls += a->svr.qtls;
428 total->svr.qtls_resume += a->svr.qtls_resume;
429 total->svr.qhttps += a->svr.qhttps;
430 total->svr.qipv6 += a->svr.qipv6;
431 total->svr.qbit_QR += a->svr.qbit_QR;
432 total->svr.qbit_AA += a->svr.qbit_AA;
433 total->svr.qbit_TC += a->svr.qbit_TC;
434 total->svr.qbit_RD += a->svr.qbit_RD;
435 total->svr.qbit_RA += a->svr.qbit_RA;
436 total->svr.qbit_Z += a->svr.qbit_Z;
437 total->svr.qbit_AD += a->svr.qbit_AD;
438 total->svr.qbit_CD += a->svr.qbit_CD;
439 total->svr.qEDNS += a->svr.qEDNS;
440 total->svr.qEDNS_DO += a->svr.qEDNS_DO;
441 total->svr.ans_rcode_nodata += a->svr.ans_rcode_nodata;
442 total->svr.ans_secure += a->svr.ans_secure;
443 total->svr.ans_bogus += a->svr.ans_bogus;
444 total->svr.unwanted_replies += a->svr.unwanted_replies;
445 total->svr.unwanted_queries += a->svr.unwanted_queries;
446 total->svr.tcp_accept_usage += a->svr.tcp_accept_usage;
448 total->svr.qtype[i] += a->svr.qtype[i];
450 total->svr.qclass[i] += a->svr.qclass[i];
452 total->svr.qopcode[i] += a->svr.qopcode[i];
454 total->svr.ans_rcode[i] += a->svr.ans_rcode[i];
456 total->svr.hist[i] += a->svr.hist[i];
458 total->svr.rpz_action[i] += a->svr.rpz_action[i];
461 total->mesh_num_states += a->mesh_num_states;
462 total->mesh_num_reply_states += a->mesh_num_reply_states;
463 total->mesh_jostled += a->mesh_jostled;
464 total->mesh_dropped += a->mesh_dropped;
465 total->mesh_replies_sent += a->mesh_replies_sent;
466 stats_timeval_add(&total->mesh_replies_sum_wait_sec, &total->mesh_replies_sum_wait_usec, a->mesh_replies_sum_wait_sec, a->mesh_replies_sum_wait_usec);
470 total->mesh_time_median += a->mesh_time_median;