- Fix comment in lruhash space function.

This commit is contained in:
W.C.A. Wijngaards 2024-03-27 12:30:00 +01:00
parent 3ea078baf6
commit fe393ac355
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
- Fix #1032: The size of subnet_msg_cache calculation mistake cause
memory usage increased beyond expectations.
- Fix for #1032, add safeguard to make table space positive.
- Fix comment in lruhash space function.
25 March 2024: Yorgos
- Merge #831 from Pierre4012: Improve Windows NSIS installer

View file

@ -540,7 +540,7 @@ lruhash_update_space_used(struct lruhash* table, void* cb_arg, int diff_size)
if(cb_arg == NULL) cb_arg = table->cb_arg;
/* find bin */
/* update space used */
lock_quick_lock(&table->lock);
if((int)table->space_used + diff_size < 0)