mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-25 12:01:10 +01:00
BUG/MINOR: stats: Add a missing break in a switch statement
A break is missing in the switch statement in the function
stats_emit_json_data_field(). This bug was introduced in the commit 88a0db28a
("MINOR: stats: Add the support of float fields in stats").
This patch fixes the issue #302 and #303. It must be backported to 2.0.
This commit is contained in:
parent
fc41e25c2e
commit
52c91bb72c
@ -391,6 +391,7 @@ int stats_emit_json_data_field(struct buffer *out, const struct field *f)
|
||||
type = "\"u64\"";
|
||||
snprintf(buf, sizeof(buf), "%llu",
|
||||
(unsigned long long) f->u.u64);
|
||||
break;
|
||||
case FF_FLT: type = "\"flt\"";
|
||||
snprintf(buf, sizeof(buf), "%f", f->u.flt);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user