From 6004fb768160ff69f7059c47695b8c3eaecf9c83 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 8 May 2021 07:37:38 +0200 Subject: [PATCH] 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. --- src/stats.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.47.2