Home
last modified time | relevance | path

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

/external/libevent/
Dbufferevent_ratelim.c67 bucket->write_limit = cfg->write_rate; in ev_token_bucket_init_()
102 if ((cfg->write_maximum - bucket->write_limit) / n_ticks < cfg->write_rate) in ev_token_bucket_update_()
105 bucket->write_limit += n_ticks * cfg->write_rate; in ev_token_bucket_update_()
144 size_t write_rate, size_t write_burst, in ev_token_bucket_cfg_new() argument
154 if (read_rate > read_burst || write_rate > write_burst || in ev_token_bucket_cfg_new()
155 read_rate < 1 || write_rate < 1) in ev_token_bucket_cfg_new()
158 write_rate > EV_RATE_LIMIT_MAX || in ev_token_bucket_cfg_new()
166 r->write_rate = write_rate; in ev_token_bucket_cfg_new()
717 if (share > g->rate_limit_cfg.write_rate) in bufferevent_rate_limit_group_set_min_share()
718 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.h782 size_t write_rate, size_t write_burst,