Lines Matching full:total
447 void server_stats_add(struct ub_stats_info* total, struct ub_stats_info* a)
449 total->svr.num_queries += a->svr.num_queries;
450 total->svr.num_queries_ip_ratelimited += a->svr.num_queries_ip_ratelimited;
451 total->svr.num_queries_cookie_valid += a->svr.num_queries_cookie_valid;
452 total->svr.num_queries_cookie_client += a->svr.num_queries_cookie_client;
453 total->svr.num_queries_cookie_invalid += a->svr.num_queries_cookie_invalid;
454 total->svr.num_queries_missed_cache += a->svr.num_queries_missed_cache;
455 total->svr.num_queries_prefetch += a->svr.num_queries_prefetch;
456 total->svr.num_queries_timed_out += a->svr.num_queries_timed_out;
457 if (total->svr.max_query_time_us < a->svr.max_query_time_us)
458 total->svr.max_query_time_us = a->svr.max_query_time_us;
459 total->svr.sum_query_list_size += a->svr.sum_query_list_size;
460 total->svr.ans_expired += a->svr.ans_expired;
462 total->svr.num_query_dnscrypt_crypted += a->svr.num_query_dnscrypt_crypted;
463 total->svr.num_query_dnscrypt_cert += a->svr.num_query_dnscrypt_cert;
464 total->svr.num_query_dnscrypt_cleartext += \
466 total->svr.num_query_dnscrypt_crypted_malformed += \
470 if(a->svr.max_query_list_size > total->svr.max_query_list_size)
471 total->svr.max_query_list_size = a->svr.max_query_list_size;
475 total->svr.qtype_big += a->svr.qtype_big;
476 total->svr.qclass_big += a->svr.qclass_big;
477 total->svr.qtcp += a->svr.qtcp;
478 total->svr.qtcp_outgoing += a->svr.qtcp_outgoing;
479 total->svr.qudp_outgoing += a->svr.qudp_outgoing;
480 total->svr.qtls += a->svr.qtls;
481 total->svr.qtls_resume += a->svr.qtls_resume;
482 total->svr.qhttps += a->svr.qhttps;
483 total->svr.qquic += a->svr.qquic;
484 total->svr.qipv6 += a->svr.qipv6;
485 total->svr.qbit_QR += a->svr.qbit_QR;
486 total->svr.qbit_AA += a->svr.qbit_AA;
487 total->svr.qbit_TC += a->svr.qbit_TC;
488 total->svr.qbit_RD += a->svr.qbit_RD;
489 total->svr.qbit_RA += a->svr.qbit_RA;
490 total->svr.qbit_Z += a->svr.qbit_Z;
491 total->svr.qbit_AD += a->svr.qbit_AD;
492 total->svr.qbit_CD += a->svr.qbit_CD;
493 total->svr.qEDNS += a->svr.qEDNS;
494 total->svr.qEDNS_DO += a->svr.qEDNS_DO;
495 total->svr.ans_rcode_nodata += a->svr.ans_rcode_nodata;
496 total->svr.ans_secure += a->svr.ans_secure;
497 total->svr.ans_bogus += a->svr.ans_bogus;
498 total->svr.unwanted_replies += a->svr.unwanted_replies;
499 total->svr.unwanted_queries += a->svr.unwanted_queries;
500 total->svr.tcp_accept_usage += a->svr.tcp_accept_usage;
502 total->svr.num_query_cachedb += a->svr.num_query_cachedb;
505 total->svr.qtype[i] += a->svr.qtype[i];
507 total->svr.qclass[i] += a->svr.qclass[i];
509 total->svr.qopcode[i] += a->svr.qopcode[i];
511 total->svr.ans_rcode[i] += a->svr.ans_rcode[i];
513 total->svr.hist[i] += a->svr.hist[i];
515 total->svr.rpz_action[i] += a->svr.rpz_action[i];
518 total->mesh_num_states += a->mesh_num_states;
519 total->mesh_num_reply_states += a->mesh_num_reply_states;
520 total->mesh_jostled += a->mesh_jostled;
521 total->mesh_dropped += a->mesh_dropped;
522 total->mesh_replies_sent += a->mesh_replies_sent;
523 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);
527 total->mesh_time_median += a->mesh_time_median;