Searched refs:n_ticks (Results 1 – 1 of 1) sorted by relevance
80 unsigned n_ticks = current_tick - bucket->last_updated; in ev_token_bucket_update_() local84 if (n_ticks == 0 || n_ticks > INT_MAX) in ev_token_bucket_update_()96 if ((cfg->read_maximum - bucket->read_limit) / n_ticks < cfg->read_rate) in ev_token_bucket_update_()99 bucket->read_limit += n_ticks * cfg->read_rate; in ev_token_bucket_update_()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_()