From 5666e4872245117ada3c06b22cc700cf138cd6e4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 2 Jan 2014 16:49:51 +0000 Subject: [PATCH] Be more human readable in symbol's output. --- src/classifiers/bayes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index 554fc777c..dfa4f768b 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -315,7 +315,7 @@ bayes_classify (struct classifier_ctx* ctx, statfile_pool_t *pool, GTree *input, if (final_prob < 0.5) { final_prob = 1. - final_prob; } - rspamd_snprintf (sumbuf, 32, "%.2f", final_prob); + rspamd_snprintf (sumbuf, 32, "%.2f%%", final_prob * 100.); cur = g_list_prepend (NULL, sumbuf); insert_result (task, data.statfiles[selected_st].st->symbol, final_prob, cur); } -- 2.39.5