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.
This commit is contained in:
Willy Tarreau 2021-05-08 07:37:38 +02:00
parent 065ba3186e
commit 6004fb7681

View File

@ -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: