We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32-bit CPU.
Sorry, I can't figure out which file cause this issue.
The text was updated successfully, but these errors were encountered:
diff --git a/src/lib/third_party/src/lruc.c b/src/lib/third_party/src/lruc.c index a63ed99..b450fde 100644 --- a/src/lib/third_party/src/lruc.c +++ b/src/lib/third_party/src/lruc.c @@ -156,10 +156,11 @@ lruc *lruc_new(uint64_t cache_size, uint32_t average_length) { perror("LRU Cache unable to create cache object"); return NULL; } - cache->hash_table_size = cache_size / average_length; cache->average_item_length = average_length; cache->free_memory = cache_size; cache->total_memory = cache_size; + do_div(cache_size, average_length); + cache->hash_table_size = cache_size; #ifndef __KERNEL__ cache->seed = time(NULL); #else
Sorry, something went wrong.
Thanks! Fixed in 23e3cbd
Got it, thanks.
No branches or pull requests
32-bit CPU.
Sorry, I can't figure out which file cause this issue.
The text was updated successfully, but these errors were encountered: