Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 40219 invoked from network); 8 Oct 2009 08:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 08:52:39 -0000 Received: (qmail 31551 invoked by uid 500); 8 Oct 2009 08:52:39 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 31459 invoked by uid 500); 8 Oct 2009 08:52:39 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 31449 invoked by uid 99); 8 Oct 2009 08:52:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 08:52:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 08:52:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2D70C23888DB; Thu, 8 Oct 2009 08:52:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r823093 - /httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c Date: Thu, 08 Oct 2009 08:52:15 -0000 To: cvs@httpd.apache.org From: jfclere@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091008085215.2D70C23888DB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jfclere Date: Thu Oct 8 08:52:14 2009 New Revision: 823093 URL: http://svn.apache.org/viewvc?rev=823093&view=rev Log: When pick was zero no worker where choosen. Modified: httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c Modified: httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c?rev=823093&r1=823092&r2=823093&view=diff ============================================================================== --- httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c (original) +++ httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c Thu Oct 8 08:52:14 2009 @@ -354,7 +354,7 @@ 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; }