Lines Matching refs:cfg_n_connections
62 static int cfg_n_connections = 30; variable
239 if (total_n_bev_checks >= .8 * ((double)cfg_duration / cfg_tick_msec) * cfg_n_connections) { in check_bucket_levels_cb()
412 expected_avg_persec = cfg_grouplimit / cfg_n_connections; in test_ratelimiting()
428 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *)); in test_ratelimiting()
429 states = calloc(cfg_n_connections, sizeof(struct client_state)); in test_ratelimiting()
431 for (i = 0; i < cfg_n_connections; ++i) { in test_ratelimiting()
466 for (i = 0; i < cfg_n_connections; ++i) { in test_ratelimiting()
510 for (i=0; i < cfg_n_connections; ++i) { in test_ratelimiting()
532 (((double)total_received)/cfg_duration)/cfg_n_connections); in test_ratelimiting()
534 double diff = expected_avg_persec - (((double)total_received)/cfg_duration)/cfg_n_connections; in test_ratelimiting()
543 …variance = total_sq_persec/cfg_n_connections - total_persec*total_persec/(cfg_n_connections*cfg_n_… in test_ratelimiting()
564 { "-n", &cfg_n_connections, 1, 0 },