-/* $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
/* GLOBALS */
Meta_data meta_data;
-unsigned long nconn = 0;
+unsigned long ntcpconn = 0;
+unsigned long nudpconn = 0;
char *stat_describe();
char *mem_describe();
/* -------------------------------------------------- */
- 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;
-/* $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
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--) {