From: Vsevolod Stakhov Date: Fri, 5 Apr 2019 18:39:56 +0000 (+0100) Subject: [Minor] Fix capacity returned for LRU cache X-Git-Tag: 1.9.2~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb42dad1562b1f532866f260f79463ad83243b45;p=rspamd.git [Minor] Fix capacity returned for LRU cache --- 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