From: wessels <> Date: Fri, 20 Feb 1998 06:31:19 +0000 (+0000) Subject: move function to the non-PUBLIC area X-Git-Tag: SQUID_3_0_PRE1~4055 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ba18ba6fb69dbc520c465c8754d0af534492919;p=thirdparty%2Fsquid.git move function to the non-PUBLIC area --- diff --git a/src/pconn.cc b/src/pconn.cc index d210fac169..edc2413cc2 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -1,6 +1,6 @@ /* - * $Id: pconn.cc,v 1.12 1998/02/19 23:28:40 wessels Exp $ + * $Id: pconn.cc,v 1.13 1998/02/19 23:31:19 wessels Exp $ * * DEBUG: section 48 Persistent Connections * AUTHOR: Duane Wessels @@ -119,6 +119,34 @@ pconnRead(int fd, void *data) comm_close(fd); } +static void +pconnHistDump(StoreEntry * e) +{ + int i; + storeAppendPrintf(e, + "Client-side persistent connection counts:\n" + "\n" + "\treq/\n" + "\tconn count\n" + "\t---- ---------\n"); + for (i = 0; i < PCONN_HIST_SZ; i++) { + if (client_pconn_hist[i] == 0) + continue; + storeAppendPrintf(e, "\t%4d %9d\n", i, client_pconn_hist[i]); + } + storeAppendPrintf(e, + "\n" + "Server-side persistent connection counts:\n" + "\n" + "\treq/\n" + "\tconn count\n" + "\t---- ---------\n"); + for (i = 0; i < PCONN_HIST_SZ; i++) { + if (server_pconn_hist[i] == 0) + continue; + storeAppendPrintf(e, "\t%4d %9d\n", i, server_pconn_hist[i]); + } +} /* ========== PUBLIC FUNCTIONS ============================================ */ @@ -198,32 +226,3 @@ pconnHistCount(int what, int i) else assert(0); } - -static void -pconnHistDump(StoreEntry * e) -{ - int i; - storeAppendPrintf(e, - "Client-side persistent connection counts:\n" - "\n" - "\treq/\n" - "\tconn count\n" - "\t---- ---------\n"); - for (i = 0; i < PCONN_HIST_SZ; i++) { - if (client_pconn_hist[i] == 0) - continue; - storeAppendPrintf(e, "\t%4d %9d\n", i, client_pconn_hist[i]); - } - storeAppendPrintf(e, - "\n" - "Server-side persistent connection counts:\n" - "\n" - "\treq/\n" - "\tconn count\n" - "\t---- ---------\n"); - for (i = 0; i < PCONN_HIST_SZ; i++) { - if (server_pconn_hist[i] == 0) - continue; - storeAppendPrintf(e, "\t%4d %9d\n", i, server_pconn_hist[i]); - } -}