Searched refs:SAFE_DIV (Results 1 - 2 of 2) sorted by relevance

/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Dutil.h120 #define SAFE_DIV(n, d) ( (d) == 0 ? 0 : (n) / (d) ) macro
H A Ddnsperf.c287 SAFE_DIV(100.0 * stats->num_completed, stats->num_sent));
290 SAFE_DIV(100.0 * stats->num_timedout, stats->num_sent));
295 SAFE_DIV(100.0 * stats->num_interrupted,
315 (unsigned int)SAFE_DIV(stats->total_request_size,
317 (unsigned int)SAFE_DIV(stats->total_response_size,
323 SAFE_DIV(stats->num_completed, (((double)run_time) / MILLION)));
327 latency_avg = SAFE_DIV(stats->latency_sum, stats->num_completed);

Completed in 325 milliseconds