Searched refs:tokens_per_hit (Results 1 – 2 of 2) sorted by relevance
104 static uint16_t tokens_per_hit[MAX_SERVICES]; variable355 tokens_per_hit[i] = 0; in CLG_Initialise()377 set_bucket_params(interval, burst, &max_tokens[i], &tokens_per_hit[i], &token_shift[i]); in CLG_Initialise()605 if (tokens_per_hit[service] == 0) in CLG_LimitServiceRate()611 if (record->tokens[service] >= tokens_per_hit[service]) { in CLG_LimitServiceRate()612 record->tokens[service] -= tokens_per_hit[service]; in CLG_LimitServiceRate()