Lines Matching defs:rate
196 double rate;
213 rate = rrl->probes;
215 rate /= rrl->searches;
221 rrl->hash->length, rate);
280 double rate;
311 rate = rrl->probes;
313 rate /= rrl->searches;
318 old_bins, new_bins, rrl->num_entries, rate);
381 * Collisions result in legitimate rate limiting responses for one
468 int balance, rate;
471 rate = 1;
474 rate = ratep->scaled;
477 balance = e->responses + age * rate;
478 if (balance > rate)
479 balance = rate;
609 int rate, new_rate, slip, new_slip, age, log_secs, min;
614 * Pick the rate counter.
615 * Optionally adjust the rate by the estimated query/second rate.
618 rate = ratep->r;
619 if (rate == 0)
637 new_rate = (int) (rate * scale);
647 rate, new_rate);
648 rate = new_rate;
649 ratep->scaled = rate;
653 min = -rrl->window * rate;
666 e->responses = rate;
669 e->responses += rate*age;
670 if (e->responses > rate) {
671 e->responses = rate;
680 * or slipped. This can happen when the request rate is just
959 * Log messages for streams that have stopped being rate limited.
998 * Main rate limit interface.
1031 * Estimate total query per second rate when scaling by qps.
1072 * Do not try to rate limit TCP responses.
1179 * Log occassionally in the rate-limit category.
1212 rrl->log_only ? "would rate limit " : "rate limit ",