diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 18:19:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 18:19:40 +0100 |
commit | 511877239e385e46ad81a22d6c87c48517693a8d (patch) | |
tree | fd0e45901e38b1aba47430ae007da21683f446c4 /src/main.h | |
parent | f74ba68df22a4bec9f8b23531aaa5f349c6bb234 (diff) | |
download | rspamd-511877239e385e46ad81a22d6c87c48517693a8d.tar.gz rspamd-511877239e385e46ad81a22d6c87c48517693a8d.zip |
Implement the concept of fuzzy protocol epoches.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index d33e4ed1a..29096b86f 100644 --- a/src/main.h +++ b/src/main.h @@ -84,6 +84,16 @@ struct rspamd_dns_resolver; struct rspamd_task; /** + * The epoch of the fuzzy client + */ +enum rspamd_fuzzy_epoch { + RSPAMD_FUZZY_EPOCH6 = 0, /**< pre 0.6.x */ + RSPAMD_FUZZY_EPOCH8, /**< 0.8 till 0.9 */ + RSPAMD_FUZZY_EPOCH9, /**< 0.9 + */ + RSPAMD_FUZZY_EPOCH_MAX +}; + +/** * Server statistics */ struct rspamd_stat { @@ -94,6 +104,8 @@ struct rspamd_stat { guint messages_learned; /**< messages learned */ guint fuzzy_hashes; /**< number of fuzzy hashes stored */ guint fuzzy_hashes_expired; /**< number of fuzzy hashes expired */ + guint64 fuzzy_hashes_checked[RSPAMD_FUZZY_EPOCH_MAX]; /**< ammount of check requests for each epoch */ + guint64 fuzzy_hashes_found[RSPAMD_FUZZY_EPOCH_MAX]; /**< amount of hashes found by epoch */ }; /** |