aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers/bayes.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-23 17:33:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-23 17:33:32 +0100
commitcf1620b5c69aacdef1728ffbab5d1ff44c9a9701 (patch)
tree1b4305faec6c08a18c9d66a403c3b962060cf636 /src/classifiers/bayes.c
parent6713fce35d73a13a49bc2650bd6c22b7f9a170a8 (diff)
downloadrspamd-cf1620b5c69aacdef1728ffbab5d1ff44c9a9701.tar.gz
rspamd-cf1620b5c69aacdef1728ffbab5d1ff44c9a9701.zip
Use revisions to get total learn numbers.
Diffstat (limited to 'src/classifiers/bayes.c')
-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 e701fe2a0..0b4e03ec4 100644
--- a/src/classifiers/bayes.c
+++ b/src/classifiers/bayes.c
@@ -264,10 +264,10 @@ bayes_classify (struct classifier_ctx* ctx, statfile_pool_t *pool, GTree *input,
data.statfiles[i].file = file;
data.statfiles[i].st = st;
if (st->is_spam) {
- data.total_spam += statfile_get_used_blocks (file);
+ data.total_spam += statfile_get_revision (file);
}
else {
- data.total_ham += statfile_get_used_blocks (file);
+ data.total_ham += statfile_get_revision (file);
}
cur = g_list_next (cur);