diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-23 17:33:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-23 17:33:32 +0100 |
commit | cf1620b5c69aacdef1728ffbab5d1ff44c9a9701 (patch) | |
tree | 1b4305faec6c08a18c9d66a403c3b962060cf636 /src/classifiers/bayes.c | |
parent | 6713fce35d73a13a49bc2650bd6c22b7f9a170a8 (diff) | |
download | rspamd-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.c | 4 |
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); |