diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 10:55:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 10:55:06 +0000 |
commit | a13bc71723ef269d7dcee56416a5f42cd8ee8a72 (patch) | |
tree | 8d67fd569b447604469d29c92de44f66e790f694 /test/rspamd_shingles_test.c | |
parent | 918031c506cd7e229578fdcb11c0289938205813 (diff) | |
download | rspamd-a13bc71723ef269d7dcee56416a5f42cd8ee8a72.tar.gz rspamd-a13bc71723ef269d7dcee56416a5f42cd8ee8a72.zip |
Resize hashes array properly.
Diffstat (limited to 'test/rspamd_shingles_test.c')
-rw-r--r-- | test/rspamd_shingles_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rspamd_shingles_test.c b/test/rspamd_shingles_test.c index 44bc1e789..e6cd0abb3 100644 --- a/test/rspamd_shingles_test.c +++ b/test/rspamd_shingles_test.c @@ -107,7 +107,7 @@ test_case (gsize cnt, gsize max_len, gdouble perm_factor) res = rspamd_shingles_compare (sgl, sgl_permuted); - msg_debug ("percentage of common shingles: %.3f, generate time: %Hd usec", + msg_debug ("percentage of common shingles: %.3f, generate time: %hd usec", res, ts_to_usec (&ts2) - ts_to_usec (&ts1)); g_assert_cmpfloat (fabs ((1.0 - res) - sqrt (perm_factor)), <=, 0.20); |