From: Vsevolod Stakhov Date: Thu, 2 Jan 2014 16:49:51 +0000 (+0000) Subject: Be more human readable in symbol's output. X-Git-Tag: 0.6.7~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5666e4872245117ada3c06b22cc700cf138cd6e4;p=rspamd.git Be more human readable in symbol's output. --- 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); }