From: Amos Jeffries Date: Sun, 24 Oct 2010 07:08:13 +0000 (-0600) Subject: Bug 2808: getRoundRobinParent not handling weights correctly X-Git-Tag: take1~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d3d0b4e6995715299a0f8cfc28a93554e9dc35d;p=thirdparty%2Fsquid.git Bug 2808: getRoundRobinParent not handling weights correctly Suspected fix. Has not been able to be replicated before the change. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index d0b26e80a2..0a636a8ca1 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -321,7 +321,7 @@ getRoundRobinParent(HttpRequest * request) if (p->weight == q->weight) { if (q->rr_count < p->rr_count) continue; - } else if ( (double) q->rr_count / q->weight < (double) p->rr_count / p->weight) { + } else if ( ((double) q->rr_count / q->weight) < ((double) p->rr_count / p->weight)) { continue; } }