From: Willy Tarreau Date: Sat, 8 May 2021 05:37:38 +0000 (+0200) Subject: MINOR: stats: add the HTML conversion for float types X-Git-Tag: v2.4-dev19~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6004fb768160ff69f7059c47695b8c3eaecf9c83;p=thirdparty%2Fhaproxy.git MINOR: stats: add the HTML conversion for float types For the prometheus exporter, a new float type was added for the fields and its conversion was added everywhere except for the HTML output. Now that we have F2H() we can implement it for consistency. --- diff --git a/src/stats.c b/src/stats.c index df1e9be699..b2bf8b2ab6 100644 --- a/src/stats.c +++ b/src/stats.c @@ -391,6 +391,7 @@ const char *field_to_html_str(const struct field *f) case FF_S64: return U2H(f->u.s64); case FF_U64: return U2H(f->u.u64); case FF_U32: return U2H(f->u.u32); + case FF_FLT: return F2H(f->u.flt); case FF_STR: return field_str(f, 0); case FF_EMPTY: default: