aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-02 16:49:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-02 16:49:51 +0000
commit5666e4872245117ada3c06b22cc700cf138cd6e4 (patch)
tree9ad1f1c79c1e4147b32d0453426de83784483152 /src/classifiers
parent5c9feedda48f5f64482204a615cd17b79bd60bac (diff)
downloadrspamd-5666e4872245117ada3c06b22cc700cf138cd6e4.tar.gz
rspamd-5666e4872245117ada3c06b22cc700cf138cd6e4.zip
Be more human readable in symbol's output.
Diffstat (limited to 'src/classifiers')
-rw-r--r--src/classifiers/bayes.c2
1 files changed, 1 insertions, 1 deletions
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);
}