From 678a066c6fdd40e2c9c55fe2365e7aa70e28195f Mon Sep 17 00:00:00 2001 From: hno <> Date: Sat, 15 Feb 2003 19:42:09 +0000 Subject: [PATCH] include weight=NN in config dump of cache_peer --- src/neighbors.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3