aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/tokenizers
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-14 17:08:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-14 17:08:38 +0000
commit19a76b29c6bab95be01dedd34d2b89c38ab45959 (patch)
tree3bae48b15b3bb32d3cb18780ac23936db468a07a /src/libstat/tokenizers
parent77ae701e0e023925e3399c2efc5a1aa44f4d46ee (diff)
downloadrspamd-19a76b29c6bab95be01dedd34d2b89c38ab45959.tar.gz
rspamd-19a76b29c6bab95be01dedd34d2b89c38ab45959.zip
[Fix] Rework bayes calculations...
Diffstat (limited to 'src/libstat/tokenizers')
-rw-r--r--src/libstat/tokenizers/osb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/tokenizers/osb.c b/src/libstat/tokenizers/osb.c
index f6f46c580..8784a6858 100644
--- a/src/libstat/tokenizers/osb.c
+++ b/src/libstat/tokenizers/osb.c
@@ -354,7 +354,7 @@ rspamd_tokenizer_osb (struct rspamd_stat_ctx *ctx,
else { \
new_tok->data = hashpipe[0].h * primes[0] + hashpipe[i].h * primes[i << 1]; \
} \
- new_tok->window_idx = i + 1; \
+ new_tok->window_idx = i; \
g_ptr_array_add (result, new_tok); \
} while(0)