diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-04 19:33:26 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-04 19:33:26 +0300 |
commit | 1162170387a535c21a63777c5d73ecbf706d0e02 (patch) | |
tree | e09861309abc11030df40987ed30227b71308676 /src/statfile.c | |
parent | 249c0583d2a12ddde67e05251e47f256a58cfd05 (diff) | |
download | rspamd-1162170387a535c21a63777c5d73ecbf706d0e02.tar.gz rspamd-1162170387a535c21a63777c5d73ecbf706d0e02.zip |
* Add simple implementation of classifiers abstraction and winnow classifier
* Force statfile to work with float values
Diffstat (limited to 'src/statfile.c')
-rw-r--r-- | src/statfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statfile.c b/src/statfile.c index 3f68a1de2..ca78b79e9 100644 --- a/src/statfile.c +++ b/src/statfile.c @@ -267,7 +267,7 @@ statfile_pool_unlock_file (statfile_pool_t *pool, char *filename) memory_pool_unlock_mutex (file->lock); } -uint32_t +float statfile_pool_get_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now) { stat_file_t *file; @@ -311,7 +311,7 @@ statfile_pool_get_block (statfile_pool_t *pool, char *filename, uint32_t h1, uin } void -statfile_pool_set_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now, uint32_t value) +statfile_pool_set_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now, float value) { stat_file_t *file; struct stat_file_block *block, *to_expire = NULL; |