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.h | |
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.h')
-rw-r--r-- | src/statfile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statfile.h b/src/statfile.h index 624ea64ee..ea0dc9965 100644 --- a/src/statfile.h +++ b/src/statfile.h @@ -26,7 +26,7 @@ struct stat_file_header { struct stat_file_block { uint32_t hash1; uint32_t hash2; - uint32_t value; /* In fact this is float */ + float value; /* In fact this is float */ uint32_t last_access; }; @@ -62,8 +62,8 @@ int statfile_pool_close (statfile_pool_t *pool, char *filename); void statfile_pool_delete (statfile_pool_t *pool); void statfile_pool_lock_file (statfile_pool_t *pool, char *filename); void statfile_pool_unlock_file (statfile_pool_t *pool, char *filename); -uint32_t statfile_pool_get_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now); -void statfile_pool_set_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now, uint32_t value); +float statfile_pool_get_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now); +void statfile_pool_set_block (statfile_pool_t *pool, char *filename, uint32_t h1, uint32_t h2, time_t now, float value); int statfile_pool_is_open (statfile_pool_t *pool, char *filename); #endif |