]> source.dussan.org Git - rspamd.git/commitdiff
Use revisions to get total learn numbers.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 May 2013 16:33:32 +0000 (17:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 May 2013 16:33:32 +0000 (17:33 +0100)
src/classifiers/bayes.c

index e701fe2a015fd641f8fd4410ab2df63c2f4aba36..0b4e03ec419020b369d5f3f8484aa4de65575cd4 100644 (file)
@@ -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);