Home
last modified time | relevance | path

Searched refs:cfg_n_connections (Results 1 – 1 of 1) sorted by relevance

/external/libevent/test/
Dtest-ratelim.c58 static int cfg_n_connections = 30; variable
223 if (total_n_bev_checks >= .8 * ((double)cfg_duration / cfg_tick_msec) * cfg_n_connections) { in check_bucket_levels_cb()
327 expected_avg_persec = cfg_grouplimit / cfg_n_connections; in test_ratelimiting()
343 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *)); in test_ratelimiting()
344 states = calloc(cfg_n_connections, sizeof(struct client_state)); in test_ratelimiting()
346 for (i = 0; i < cfg_n_connections; ++i) { in test_ratelimiting()
381 for (i = 0; i < cfg_n_connections; ++i) { in test_ratelimiting()
425 for (i=0; i < cfg_n_connections; ++i) { in test_ratelimiting()
447 (((double)total_received)/cfg_duration)/cfg_n_connections); in test_ratelimiting()
449 double diff = expected_avg_persec - (((double)total_received)/cfg_duration)/cfg_n_connections; in test_ratelimiting()
[all …]