[MINOR] stats: add "a link" & "a href" for sockets
This patch adds add "a link" & "a href" html tags for sockets.
As sockets may have the same name like servers, I decided to
add "+" char (forbidden in names assigned to servers), as a prefix.
diff --git a/src/dumpstats.c b/src/dumpstats.c
index 0751d5b..576566d 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -1406,7 +1406,8 @@
if (!(s->data_ctx.stats.flags & STAT_FMT_CSV)) {
chunk_printf(&msg,
/* name, queue */
- "<tr class=socket><td class=ac>%s</td><td colspan=3></td>"
+ "<tr class=socket><td class=ac><a name=\"%s/+%s\"></a>"
+ "<a class=lfsb href=\"#%s/+%s\">%s</a></td><td colspan=3></td>"
/* sessions rate: current, max, limit */
"<td colspan=3> </td>"
/* sessions: current, max, limit, total, lbtot */
@@ -1415,7 +1416,7 @@
/* bytes: in, out */
"<td>%s</td><td>%s</td>"
"",
- l->name,
+ px->id, l->name, px->id, l->name, l->name,
U2H3(l->nbconn), U2H4(l->counters->conn_max), U2H5(l->maxconn),
U2H6(l->counters->cum_conn), U2H7(l->counters->bytes_in), U2H8(l->counters->bytes_out));