diff --git a/src/modules/mod_status.c b/src/modules/mod_status.c
index e4c2467..9ac89be 100644
--- a/src/modules/mod_status.c
+++ b/src/modules/mod_status.c
@@ -157,6 +157,23 @@ static const gchar html_worker_row_avg[] =
"
%s | \n"
" %u | \n"
" \n";
+static const gchar html_connections_sum[] =
+ " \n"
+ " \n"
+ " request start | \n"
+ " read request header | \n"
+ " handle request | \n"
+ " write response | \n"
+ " keep-alive | \n"
+ "
\n"
+ " \n"
+ " %u | \n"
+ " %u | \n"
+ " %u | \n"
+ " %u | \n"
+ " %u | \n"
+ "
\n"
+ "
\n";
static const gchar html_connections_th[] =
" \n"
" \n"
@@ -599,11 +616,9 @@ static void status_collect_cb(gpointer cbdata, gpointer fdata, GPtrArray *result
}
/* connection counts */
- g_string_append_printf(html,
- "%u connections
\n"
- "dead: %u keep-alive: %u request start: %u read request header: %u handle main vrequest: %u write: %u
\n",
- total_connections, connection_count[0], connection_count[1], connection_count[2],
- connection_count[3], connection_count[4], connection_count[5]
+ g_string_append_len(html, CONST_STR_LEN("Active connections (states, sum)
\n"));
+ g_string_append_printf(html, html_connections_sum, connection_count[1],
+ connection_count[2], connection_count[3], connection_count[4], connection_count[5]
);
/* list connections */