From: Vsevolod Stakhov Date: Fri, 12 Sep 2014 08:53:18 +0000 (+0100) Subject: Fix type in stat output. X-Git-Tag: 0.7.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02a90cf709d7bc53418480fdc82af24eeec4bd9;p=thirdparty%2Frspamd.git Fix type in stat output. --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 93358df6d5..f347eabd1d 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -628,11 +628,9 @@ rspamc_stat_actions (ucl_object_t *obj, GString *out, gint64 scanned) spam = ucl_object_toint (ucl_object_find_key (obj, "spam_count")); ham = ucl_object_toint (ucl_object_find_key (obj, "ham_count")); - rspamd_printf_gstring (out, "Messages treated as spam: %" G_GINT64_FORMAT - ", %.2f%%\n", spam, + rspamd_printf_gstring (out, "Messages treated as spam: %L, %.2f%%\n", spam, (gdouble)spam / (gdouble)scanned); - rspamd_printf_gstring (out, "Messages treated as ham: %" G_GINT64_FORMAT - ", %.2f%%\n", ham, + rspamd_printf_gstring (out, "Messages treated as ham: %L, %.2f%%\n", ham, (gdouble)ham / (gdouble)scanned); }