From: hno <> Date: Sat, 15 Feb 2003 19:42:09 +0000 (+0000) Subject: include weight=NN in config dump of cache_peer X-Git-Tag: SQUID_3_0_PRE1~338 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=678a066c6fdd40e2c9c55fe2365e7aa70e28195f;p=thirdparty%2Fsquid.git include weight=NN in config dump of cache_peer --- diff --git a/src/neighbors.cc b/src/neighbors.cc index c13318a397..436fb8cd27 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.313 2003/02/15 00:15:51 hno Exp $ + * $Id: neighbors.cc,v 1.314 2003/02/15 12:42:09 hno Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -1283,6 +1283,8 @@ dump_peer_options(StoreEntry * sentry, peer * p) storeAppendPrintf(sentry, " weighted-round-robin"); if (p->options.mcast_responder) storeAppendPrintf(sentry, " multicast-responder"); + if (p->weight != 1) + storeAppendPrintf(sentry, " weight=%d", p->weight); if (p->options.closest_only) storeAppendPrintf(sentry, " closest-only"); #if USE_HTCP