From: Krzysztof Piotr Oledzki Date: Mon, 4 Jan 2010 10:33:32 +0000 (+0100) Subject: [MINOR] stats: add "a link" & "a href" for sockets X-Git-Tag: v1.4-dev6~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ec025d9a585e40a3e82a187326497f235561944;p=thirdparty%2Fhaproxy.git [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 0751d5b8dd..576566de50 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -1406,7 +1406,8 @@ int stats_dump_proxy(struct session *s, struct proxy *px, struct uri_auth *uri) if (!(s->data_ctx.stats.flags & STAT_FMT_CSV)) { chunk_printf(&msg, /* name, queue */ - "%s" + "" + "%s" /* sessions rate: current, max, limit */ " " /* sessions: current, max, limit, total, lbtot */ @@ -1415,7 +1416,7 @@ int stats_dump_proxy(struct session *s, struct proxy *px, struct uri_auth *uri) /* bytes: in, out */ "%s%s" "", - 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));