]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux_h2: fix incorrect stat titles
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Feb 2021 15:27:22 +0000 (16:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Feb 2021 16:50:45 +0000 (17:50 +0100)
Duplicate titles for the stats H2_ST_{OPEN,TOTAL}_{CONN,STREAM}. These
entries are used on csv for the heading.

This must be backported up to 2.3.

This fixes the github issue #1102.

src/mux_h2.c

index 2de155f3115c0d76c11f1b98520c1b6c8e6d908b..511975bd9c9f91dfccd75a542a2868dd1ed520ee 100644 (file)
@@ -432,9 +432,9 @@ static struct name_desc h2_stats[] = {
                                 .desc = "Count of currently open connections" },
        [H2_ST_OPEN_STREAM]  = { .name = "h2_backend_open_streams",
                                 .desc = "Count of currently open streams" },
-       [H2_ST_TOTAL_CONN]   = { .name = "h2_open_connections",
+       [H2_ST_TOTAL_CONN]   = { .name = "h2_total_connections",
                                 .desc = "Total number of connections" },
-       [H2_ST_TOTAL_STREAM] = { .name = "h2_backend_open_streams",
+       [H2_ST_TOTAL_STREAM] = { .name = "h2_backend_total_streams",
                                 .desc = "Total number of streams" },
 };