]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: fix be/sessions/max output in html stats
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Dec 2016 14:07:29 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Dec 2016 14:07:29 +0000 (15:07 +0100)
"Tadas / XtGem" reported that the max value was wrong and would report
the current value instead. This needs to be backported to 1.7.

src/stats.c

index 497aa4779077e70ec88ad95bf773da364e62f119..0ba6d27ba3318941ab78f455972c9c701e79f6fd 100644 (file)
@@ -914,7 +914,7 @@ static int stats_dump_fields_html(struct chunk *out, const struct field *stats,
                              "<td><u>%s<div class=tips><table class=det>"
                              "<tr><th>Cum. sessions:</th><td>%s</td></tr>"
                              "",
-                             U2H(stats[ST_F_SCUR].u.u32), U2H(stats[ST_F_SCUR].u.u32), U2H(stats[ST_F_SLIM].u.u32),
+                             U2H(stats[ST_F_SCUR].u.u32), U2H(stats[ST_F_SMAX].u.u32), U2H(stats[ST_F_SLIM].u.u32),
                              U2H(stats[ST_F_STOT].u.u64),
                              U2H(stats[ST_F_STOT].u.u64));