commit bb42dad: [Minor] Fix capacity returned for LRU cache

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Apr 5 18:42:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-05 19:39:56 +0100
URL: https://github.com/rspamd/rspamd/commit/bb42dad1562b1f532866f260f79463ad83243b45

[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 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


More information about the Commits mailing list