mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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:
parent
065ba3186e
commit
6004fb7681
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user