aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-27 20:26:21 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-27 20:26:21 +0400
commite284ad4bdffd09f1f9da7b780bc0c8ead33f2910 (patch)
treec3a0768370fc0b00652dd2c17abc7004c3686a4a /src
parent11e6f2b4fd69e55785c72ea1c8622079b3ec49e1 (diff)
downloadrspamd-e284ad4bdffd09f1f9da7b780bc0c8ead33f2910.tar.gz
rspamd-e284ad4bdffd09f1f9da7b780bc0c8ead33f2910.zip
Fix statshow utility.
Diffstat (limited to 'src')
-rw-r--r--src/classifiers/bayes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c
index dadd33e5e..af79e0eaa 100644
--- a/src/classifiers/bayes.c
+++ b/src/classifiers/bayes.c
@@ -47,7 +47,7 @@ struct bayes_statfile_data {
guint64 total_hits;
double local_probability;
double post_probability;
- guint value;
+ guint64 value;
struct statfile *st;
stat_file_t *file;
};
@@ -145,7 +145,7 @@ bayes_classify_callback (gpointer key, gpointer value, gpointer data)
cur->post_probability = G_MINDOUBLE * 100;
}
if (cd->ctx->debug) {
- msg_info ("token: %s, statfile: %s, probability: %.4f, post_probability: %.4f",
+ msg_info ("token: %s, statfile: %s, probability: %uL, post_probability: %.4f",
node->extra, cur->st->symbol, cur->value, cur->post_probability);
}
}