From: Willy Tarreau Date: Sat, 1 Oct 2016 07:12:08 +0000 (+0200) Subject: BUG/MINOR: stats: report the correct conn_time in backend's html output X-Git-Tag: v1.7-dev5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f6367fa0826b30da6597da37479d9caa5d15e97;p=thirdparty%2Fhaproxy.git BUG/MINOR: stats: report the correct conn_time in backend's html output An apparent copy-paste error resulted in backend's avg connection time to report the average queue time instead in the HTML dump. Backport to 1.6 is desired. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 0a047b84bf..fe342231f4 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -3890,7 +3890,7 @@ static int stats_dump_fields_html(struct chunk *out, const struct field *stats, } chunk_appendf(out, "- Queue time:%sms", U2H(stats[ST_F_QTIME].u.u32)); - chunk_appendf(out, "- Connect time:%sms", U2H(stats[ST_F_QTIME].u.u32)); + chunk_appendf(out, "- Connect time:%sms", U2H(stats[ST_F_CTIME].u.u32)); if (strcmp(field_str(stats, ST_F_MODE), "http") == 0) chunk_appendf(out, "- Response time:%sms", U2H(stats[ST_F_RTIME].u.u32)); chunk_appendf(out, "- Total time:%sms", U2H(stats[ST_F_TTIME].u.u32));