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

/freebsd-13-stable/contrib/libevent/test/
H A 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) {
327 expected_avg_persec = cfg_grouplimit / cfg_n_connections;
343 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *));
344 states = calloc(cfg_n_connections, sizeof(struct client_state));
346 for (i = 0; i < cfg_n_connections; ++i) {
381 for (i = 0; i < cfg_n_connections; ++i) {
425 for (i=0; i < cfg_n_connections; ++i) {
447 (((double)total_received)/cfg_duration)/cfg_n_connections);
449 double diff = expected_avg_persec - (((double)total_received)/cfg_duration)/cfg_n_connections;
[all...]
/freebsd-13-stable/contrib/ntp/sntp/libevent/test/
H A 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) {
325 expected_avg_persec = cfg_grouplimit / cfg_n_connections;
341 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *));
342 states = calloc(cfg_n_connections, sizeof(struct client_state));
348 for (i = 0; i < cfg_n_connections; ++i) {
383 for (i = 0; i < cfg_n_connections; ++i) {
427 for (i=0; i < cfg_n_connections; ++i) {
449 (((double)total_received)/cfg_duration)/cfg_n_connections);
451 double diff = expected_avg_persec - (((double)total_received)/cfg_duration)/cfg_n_connections;
[all...]

Completed in 103 milliseconds