Searched refs:rate_limit_cfg (Results 1 – 2 of 2) sorted by relevance
538 tick = ev_token_bucket_get_tick(&now, &g->rate_limit_cfg); in _bev_group_refill_callback()539 ev_token_bucket_update(&g->rate_limit, &g->rate_limit_cfg, tick); in _bev_group_refill_callback()651 memcpy(&g->rate_limit_cfg, cfg, sizeof(g->rate_limit_cfg)); in bufferevent_rate_limit_group_new()679 &g->rate_limit_cfg.tick_timeout, &cfg->tick_timeout, ==); in bufferevent_rate_limit_group_set_cfg()680 memcpy(&g->rate_limit_cfg, cfg, sizeof(g->rate_limit_cfg)); in bufferevent_rate_limit_group_set_cfg()711 if (share > g->rate_limit_cfg.read_rate) in bufferevent_rate_limit_group_set_min_share()712 share = g->rate_limit_cfg.read_rate; in bufferevent_rate_limit_group_set_min_share()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()
71 struct ev_token_bucket_cfg rate_limit_cfg; member