Searched refs:rate_limit_cfg (Results 1 – 2 of 2) sorted by relevance
539 tick = ev_token_bucket_get_tick_(&now, &g->rate_limit_cfg); in bev_group_refill_callback_()540 ev_token_bucket_update_(&g->rate_limit, &g->rate_limit_cfg, tick); in bev_group_refill_callback_()652 memcpy(&g->rate_limit_cfg, cfg, sizeof(g->rate_limit_cfg)); in bufferevent_rate_limit_group_new()683 &g->rate_limit_cfg.tick_timeout, &cfg->tick_timeout, ==); in bufferevent_rate_limit_group_set_cfg()684 memcpy(&g->rate_limit_cfg, cfg, sizeof(g->rate_limit_cfg)); in bufferevent_rate_limit_group_set_cfg()715 if (share > g->rate_limit_cfg.read_rate) in bufferevent_rate_limit_group_set_min_share()716 share = g->rate_limit_cfg.read_rate; in bufferevent_rate_limit_group_set_min_share()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()
84 struct ev_token_bucket_cfg rate_limit_cfg; member