]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] stats: add href to tracked server
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Tue, 5 Jan 2010 17:33:01 +0000 (18:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jan 2010 23:28:07 +0000 (00:28 +0100)
Each server has now a dedicated "a link" tag, so let's use it.

src/dumpstats.c

index e51a314bc0c5a1718e8ea1da7db9bbcc662de813..65f6a1c6fef5b8178580b911179a70248036571d 100644 (file)
@@ -1735,7 +1735,8 @@ int stats_dump_proxy(struct session *s, struct proxy *px, struct uri_auth *uri)
                                             svs->counters.down_trans, human_time(srv_downtime(sv), 1));
                                } else if (sv != svs)
                                        chunk_printf(&msg,
-                                            "<td class=ac colspan=3>via %s/%s</td>", svs->proxy->id, svs->id);
+                                            "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\">via %s/%s<a></td>",
+                                                       svs->proxy->id, svs->id, svs->proxy->id, svs->id);
                                else
                                        chunk_printf(&msg,
                                             "<td colspan=3></td>");