aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-11 16:40:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-11 16:40:17 +0100
commit8127acfbbc67484f057a319dc6afd52d8184b850 (patch)
treecaaf0e3a625001fd33afbb5c1ea2492e714665e5 /src
parent8f191fa2d1318b413f764e6958e498665bc449ce (diff)
downloadrspamd-8127acfbbc67484f057a319dc6afd52d8184b850.tar.gz
rspamd-8127acfbbc67484f057a319dc6afd52d8184b850.zip
[Minor] Properly show warning
Diffstat (limited to 'src')
-rw-r--r--src/libstat/classifiers/bayes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/classifiers/bayes.c b/src/libstat/classifiers/bayes.c
index cf1f35e6e..2aa15eee9 100644
--- a/src/libstat/classifiers/bayes.c
+++ b/src/libstat/classifiers/bayes.c
@@ -337,12 +337,12 @@ bayes_classify (struct rspamd_classifier * ctx,
rspamd_mempool_set_variable (task->task_pool, "bayes_prob", pprob, NULL);
if (ctx->cfg->min_tokens > 0 &&
- cl.text_tokens < ctx->cfg->min_tokens * 0.1) {
+ cl.text_tokens < (gint)(ctx->cfg->min_tokens * 0.1)) {
msg_info_bayes ("ignore bayes probability %.2f since we have "
- "too few text tokens: %uL, at least %.0f is required",
+ "too few text tokens: %uL, at least %d is required",
final_prob,
cl.text_tokens,
- ctx->cfg->min_tokens * 0.1);
+ (gint)(ctx->cfg->min_tokens * 0.1));
return TRUE;
}