Searched refs:n_ticks (Results 1 – 1 of 1) sorted by relevance
79 unsigned n_ticks = current_tick - bucket->last_updated; in ev_token_bucket_update() local83 if (n_ticks == 0 || n_ticks > INT_MAX) in ev_token_bucket_update()95 if ((cfg->read_maximum - bucket->read_limit) / n_ticks < cfg->read_rate) in ev_token_bucket_update()98 bucket->read_limit += n_ticks * cfg->read_rate; in ev_token_bucket_update()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()