summaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-08 21:21:53 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-08 21:21:53 +0400
commit8e399cdba1bba1da8c1de2b8a22efe719aa30cde (patch)
tree579eca49aa1fd0b01d4b9739418f8ed592225ef4 /src/lua_worker.c
parenta1e2b2d84b185b5430252d7ead5806944be433af (diff)
downloadrspamd-8e399cdba1bba1da8c1de2b8a22efe719aa30cde.tar.gz
rspamd-8e399cdba1bba1da8c1de2b8a22efe719aa30cde.zip
* Use murmur hash for all hashes as it is more efficient and provides more uniform distribution as glib's default one.
* Fix probability renormalization while using advanced classification.
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index c75d275a6..c4276968a 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -410,7 +410,7 @@ init_lua_worker (void)
type = g_quark_try_string ("lua");
ctx = g_malloc0 (sizeof (struct rspamd_lua_worker_ctx));
- ctx->params = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_list_free);
+ ctx->params = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal, g_free, (GDestroyNotify)g_list_free);
register_worker_opt (type, "file", xml_handle_string, ctx, G_STRUCT_OFFSET (struct rspamd_lua_worker_ctx, file));