From 8b265582542d288fb5ff1bbda9b4d3e967c171dd Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 14 Jul 2008 15:09:02 +0530 Subject: Make the embedded stats message display valid XHTML too --- src/stats.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/stats.c b/src/stats.c index 86b2911..dcbc3b8 100644 --- a/src/stats.c +++ b/src/stats.c @@ -63,16 +63,21 @@ int showstats(struct conn_s *connptr) { static char *msg = - "%s (%s) stats\r\n" - "\r\n" - "

%s (%s) run-time statistics


\r\n" - "
\r\n" - "Number of open connections: %lu
\r\n" - "Number of requests: %lu
\r\n" - "Number of bad connections: %lu
\r\n" - "Number of denied connections: %lu
\r\n" - "Number of refused connections due to high load: %lu\r\n" - "
\r\n\r\n"; + "\n" + "\n" + "\n" + "%s version %s run-time statistics\n" + "\n" + "

%s version %s run-time statistics

\n" + "

\n" + "Number of open connections: %lu
\n" + "Number of requests: %lu
\n" + "Number of bad connections: %lu
\n" + "Number of denied connections: %lu
\n" + "Number of refused connections due to high load: %lu\n" + "

\n" + "\n" + "\n"; char *message_buffer; char opens[16], reqs[16], badconns[16], denied[16], refused[16]; -- cgit v1.2.3