From: wessels <> Date: Fri, 19 Apr 1996 02:28:55 +0000 (+0000) Subject: separated nconn into TCP and UCP X-Git-Tag: SQUID_3_0_PRE1~6103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47b91faabc4007cd3fde175056f01afb9b8495f9;p=thirdparty%2Fsquid.git separated nconn into TCP and UCP --- diff --git a/src/stat.cc b/src/stat.cc index f654e8acc7..19e5b6fef9 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -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; diff --git a/src/tools.cc b/src/tools.cc index 272609db48..f191c9c13e 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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--) {