]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
separated nconn into TCP and UCP
authorwessels <>
Fri, 19 Apr 1996 02:28:55 +0000 (02:28 +0000)
committerwessels <>
Fri, 19 Apr 1996 02:28:55 +0000 (02:28 +0000)
src/stat.cc
src/tools.cc

index f654e8acc71417100a47a0c6c9108c42d5058a0f..19e5b6fef99aa330a882381b647c54ee87dab93a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: stat.cc,v 1.29 1996/04/18 20:02:03 wessels Exp $ */
+/* $Id: stat.cc,v 1.30 1996/04/18 20:28:55 wessels Exp $ */
 
 /*
  * DEBUG: Section 18          stat
@@ -29,7 +29,8 @@ typedef struct _squid_read_data_t {
 
 /* GLOBALS */
 Meta_data meta_data;
-unsigned long nconn = 0;
+unsigned long ntcpconn = 0;
+unsigned long nudpconn = 0;
 
 char *stat_describe();
 char *mem_describe();
@@ -382,9 +383,14 @@ void info_get(obj, sentry)
 
     /* -------------------------------------------------- */
 
-    storeAppendPrintf(sentry, "{Connection information for %s:}\n", appname);
+    sprintf(line, "{Connection information for %s:}\n", appname);
+    storeAppend(sentry, line, strlen(line));
 
-    storeAppendPrintf(sentry, "{\tNumber of connections:\t%lu}\n", nconn);
+    sprintf(line, "{\tNumber of TCP connections:\t%lu}\n", ntcpconn);
+    storeAppend(sentry, line, strlen(line));
+
+    sprintf(line, "{\tNumber of UDP connections:\t%lu}\n", ndupconn);
+    storeAppend(sentry, line, strlen(line));
 
     {
        float f;
index 272609db4885cabf2452468c392c4e5db185dcfb..f191c9c13edb43b560242c16e327614df2de4595 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: tools.cc,v 1.40 1996/04/17 23:47:19 wessels Exp $ */
+/* $Id: tools.cc,v 1.41 1996/04/18 20:28:56 wessels Exp $ */
 
 /*
  * DEBUG: Section 21          tools
@@ -168,7 +168,7 @@ void shut_down(sig)
     int i;
     int lft = getShutdownLifetime();
     FD_ENTRY *f;
-    debug(21, 1, "Preparing for shutdown after %d connections\n", nconn);
+    debug(21, 1, "Preparing for shutdown after %d connections\n", ntcpconn);
     serverConnectionsClose();
     ipcacheShutdownServers();
     for (i = fdstat_biggest_fd(); i >= 0; i--) {