summaryrefslogtreecommitdiffstats
path: root/modules/proxy
diff options
context:
space:
mode:
authorJean-Frederic Clere <jfclere@apache.org>2009-10-08 10:52:14 +0200
committerJean-Frederic Clere <jfclere@apache.org>2009-10-08 10:52:14 +0200
commit3c6bce62c6657a4f5f7ae8fbf5027a193a34bb19 (patch)
tree18e485fa101e53e8a85af874d89f345d65007039 /modules/proxy
parentremove CHANGES entry (diff)
downloadapache2-3c6bce62c6657a4f5f7ae8fbf5027a193a34bb19.tar.xz
apache2-3c6bce62c6657a4f5f7ae8fbf5027a193a34bb19.zip
When pick was zero no worker where choosen.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@823093 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy')
-rw-r--r--modules/proxy/balancers/mod_lbmethod_heartbeat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/proxy/balancers/mod_lbmethod_heartbeat.c b/modules/proxy/balancers/mod_lbmethod_heartbeat.c
index 6a9210655d..ac859186b0 100644
--- a/modules/proxy/balancers/mod_lbmethod_heartbeat.c
+++ b/modules/proxy/balancers/mod_lbmethod_heartbeat.c
@@ -354,7 +354,7 @@ static proxy_worker *find_best_hb(proxy_balancer *balancer,
for (i = 0; i < up_servers->nelts; i++) {
server = APR_ARRAY_IDX(up_servers, i, hb_server_t *);
- if (pick > c && pick <= c + server->ready) {
+ if (pick >= c && pick <= c + server->ready) {
mycandidate = server->worker;
}