From bb42dad1562b1f532866f260f79463ad83243b45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Apr 2019 19:39:56 +0100 Subject: [PATCH] [Minor] Fix capacity returned for LRU cache --- src/libutil/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/hash.c b/src/libutil/hash.c index d4fdfea468..c40200f64f 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 -- 2.47.3