From bb42dad1562b1f532866f260f79463ad83243b45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Apr 2019 19:39:56 +0100 Subject: [Minor] Fix capacity returned for LRU cache --- src/libutil/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3