diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-27 20:26:21 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-27 20:26:21 +0400 |
commit | e284ad4bdffd09f1f9da7b780bc0c8ead33f2910 (patch) | |
tree | c3a0768370fc0b00652dd2c17abc7004c3686a4a /src | |
parent | 11e6f2b4fd69e55785c72ea1c8622079b3ec49e1 (diff) | |
download | rspamd-e284ad4bdffd09f1f9da7b780bc0c8ead33f2910.tar.gz rspamd-e284ad4bdffd09f1f9da7b780bc0c8ead33f2910.zip |
Fix statshow utility.
Diffstat (limited to 'src')
-rw-r--r-- | src/classifiers/bayes.c | 4 |
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); } } |