]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix capacity returned for LRU cache
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Apr 2019 18:39:56 +0000 (19:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Apr 2019 18:39:56 +0000 (19:39 +0100)
src/libutil/hash.c

index d4fdfea468f9dc228f0ccb03a4113c47203dbf73..c40200f64fe4a04280f087968388699f1139260d 100644 (file)
@@ -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