aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-05 19:39:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-05 19:39:56 +0100
commitbb42dad1562b1f532866f260f79463ad83243b45 (patch)
tree3d9fd233473e61e2ad7938f7b2eac8f0753c6118 /src
parent3bb2221337743a15ea2663ab92292be3b6a9546e (diff)
downloadrspamd-bb42dad1562b1f532866f260f79463ad83243b45.tar.gz
rspamd-bb42dad1562b1f532866f260f79463ad83243b45.zip
[Minor] Fix capacity returned for LRU cache
Diffstat (limited to 'src')
-rw-r--r--src/libutil/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c
index d4fdfea46..c40200f64 100644
--- a/src/libutil/hash.c
+++ b/src/libutil/hash.c
@@ -713,5 +713,5 @@ rspamd_lru_hash_size (rspamd_lru_hash_t *hash)
guint
rspamd_lru_hash_capacity (rspamd_lru_hash_t *hash)
{
- return hash->n_buckets;
+ return hash->maxsize;
} \ No newline at end of file