]> source.dussan.org Git - rspamd.git/commitdiff
Be more human readable in symbol's output.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jan 2014 16:49:51 +0000 (16:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jan 2014 16:49:51 +0000 (16:49 +0000)
src/classifiers/bayes.c

index 554fc777c6c76dcb862327d1fdc9d9e21b3e480b..dfa4f768b61bb77162b1b7ce8e91c20b810ccee4 100644 (file)
@@ -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);
                }