From: Vsevolod Stakhov Date: Thu, 23 May 2013 16:33:32 +0000 (+0100) Subject: Use revisions to get total learn numbers. X-Git-Tag: 0.5.5~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf1620b5c69aacdef1728ffbab5d1ff44c9a9701;p=rspamd.git Use revisions to get total learn numbers. --- 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);