diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-09-10 16:30:18 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-09-10 16:30:18 +0000 |
commit | 7b6fdf425a9ef38fe9e16779b3af25863104d9c0 (patch) | |
tree | 1ac9dd11604f49ca6a2feae373ff4dc7e6fb0002 /iterator/iter_utils.c | |
parent | 4289761a7b61df4b64c11ada446a187df61e6a1e (diff) |
Diffstat (limited to 'iterator/iter_utils.c')
-rw-r--r-- | iterator/iter_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iterator/iter_utils.c b/iterator/iter_utils.c index 752474cd8e6f0..0a8f7700fcf0f 100644 --- a/iterator/iter_utils.c +++ b/iterator/iter_utils.c @@ -329,9 +329,9 @@ iter_filter_order(struct iter_env* iter_env, struct module_env* env, return 0 to force the caller to fetch more */ } - if(env->cfg->low_rtt_pct != 0 && prefetch == 0 && + if(env->cfg->low_rtt_permil != 0 && prefetch == 0 && low_rtt < env->cfg->low_rtt && - ub_random_max(env->rnd, 1000) < env->cfg->low_rtt_pct) { + ub_random_max(env->rnd, 1000) < env->cfg->low_rtt_permil) { /* the query is not prefetch, but for a downstream client, * there is a low_rtt (fast) server. We choose that x% of the * time */ |