diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-06 20:31:03 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-06 20:31:03 +0300 |
commit | 61d89e0791f1d1a2d590ee7c05e6ad5066d1ee3d (patch) | |
tree | d23b1cce2baa65712c9d77a5c48798b2d5206d10 /src/classifiers/winnow.c | |
parent | b37ea339a0033271beb521125b3c239556150df4 (diff) | |
download | rspamd-61d89e0791f1d1a2d590ee7c05e6ad5066d1ee3d.tar.gz rspamd-61d89e0791f1d1a2d590ee7c05e6ad5066d1ee3d.zip |
* Add binlog API implementation
Diffstat (limited to 'src/classifiers/winnow.c')
-rw-r--r-- | src/classifiers/winnow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c index acf12a462..cc2a0cc23 100644 --- a/src/classifiers/winnow.c +++ b/src/classifiers/winnow.c @@ -77,11 +77,13 @@ learn_callback (gpointer key, gpointer value, gpointer data) /* Consider that not found blocks have value 1 */ if ((v = statfile_pool_get_block (cd->pool, cd->file, node->h1, node->h2, cd->now)) < 0.00001) { statfile_pool_set_block (cd->pool, cd->file, node->h1, node->h2, cd->now, c); + node->value = c; } else { statfile_pool_set_block (cd->pool, cd->file, node->h1, node->h2, cd->now, v * c); + node->value = v * c; } - + cd->count++; return FALSE; |