]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] add a link to the CSV export on the stats page.
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2007 09:05:48 +0000 (11:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2007 12:12:30 +0000 (14:12 +0200)
src/dumpstats.c

index c77528dcc038e40f47cd4fec227d984bc9feaf60..13196e27825ab4268679f3a93c8a146f36806f83 100644 (file)
@@ -274,6 +274,11 @@ int stats_dump_http(struct session *s, struct uri_auth *uri, int flags)
                             (s->flags & SN_STAT_HIDEDWN) ? ";up" : "",
                             (s->flags & SN_STAT_NORFRSH) ? ";norefresh" : "");
 
+                       chunk_printf(&msg, sizeof(trash),
+                            "<li><a href=\"%s;csv%s\">CSV export</a><br>\n",
+                            uri->uri_prefix,
+                            (uri->refresh > 0) ? ";norefresh" : "");
+
                        chunk_printf(&msg, sizeof(trash),
                             "</td>"
                             "<td align=\"left\" valign=\"top\" nowrap width=\"1%%\">"