diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-28 13:39:08 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-28 13:39:08 -0700 |
commit | c551b9cc8d3dd804b674f76c9171320b85484516 (patch) | |
tree | 9bd344a9d216d000989f4c35a4934c55cec6aaf0 /src/libutil/printf.c | |
parent | 3ebeaf58bcc20afc239abeb68057faaf9da5c357 (diff) | |
download | rspamd-c551b9cc8d3dd804b674f76c9171320b85484516.tar.gz rspamd-c551b9cc8d3dd804b674f76c9171320b85484516.zip |
Fix printing of floating point values.
Diffstat (limited to 'src/libutil/printf.c')
-rw-r--r-- | src/libutil/printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c index 195c04520..ba30587fc 100644 --- a/src/libutil/printf.c +++ b/src/libutil/printf.c @@ -519,6 +519,9 @@ rspamd_vprintf_common (rspamd_printf_append_func func, gpointer apd, const gchar *p++ = '-'; f = -f; } + if (frac_width == 0) { + frac_width = 6; + } ui64 = (gint64) f; |