From cf1620b5c69aacdef1728ffbab5d1ff44c9a9701 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 23 May 2013 17:33:32 +0100 Subject: [PATCH] Use revisions to get total learn numbers. --- src/classifiers/bayes.c | 4 ++-- 1 file 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); -- 2.39.5