]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
move function to the non-PUBLIC area
authorwessels <>
Fri, 20 Feb 1998 06:31:19 +0000 (06:31 +0000)
committerwessels <>
Fri, 20 Feb 1998 06:31:19 +0000 (06:31 +0000)
src/pconn.cc

index d210fac169260b428356ddc7c170912cdc7439e4..edc2413cc21f2f7d93ffcb021e734d883662a561 100644 (file)
@@ -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]);
-    }
-}