Home
last modified time | relevance | path

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

/external/libevent/
Dbufferevent_ratelim.c66 bucket->write_limit = cfg->write_rate; in ev_token_bucket_init()
101 if ((cfg->write_maximum - bucket->write_limit) / n_ticks < cfg->write_rate) in ev_token_bucket_update()
104 bucket->write_limit += n_ticks * cfg->write_rate; in ev_token_bucket_update()
143 size_t write_rate, size_t write_burst, in ev_token_bucket_cfg_new() argument
153 if (read_rate > read_burst || write_rate > write_burst || in ev_token_bucket_cfg_new()
154 read_rate < 1 || write_rate < 1) in ev_token_bucket_cfg_new()
157 write_rate > EV_RATE_LIMIT_MAX || in ev_token_bucket_cfg_new()
165 r->write_rate = write_rate; in ev_token_bucket_cfg_new()
713 if (share > g->rate_limit_cfg.write_rate) in bufferevent_rate_limit_group_set_min_share()
714 share = g->rate_limit_cfg.write_rate; in bufferevent_rate_limit_group_set_min_share()
Dratelim-internal.h54 size_t write_rate; member
/external/libevent/include/event2/
Dbufferevent.h633 size_t write_rate, size_t write_burst,