]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
include weight=NN in config dump of cache_peer
authorhno <>
Sat, 15 Feb 2003 19:42:09 +0000 (19:42 +0000)
committerhno <>
Sat, 15 Feb 2003 19:42:09 +0000 (19:42 +0000)
src/neighbors.cc

index c13318a397bfc234340849f81094013cca06b10b..436fb8cd2711476c7c841dc7b62ca4f6281d079a 100644 (file)
@@ -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