1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

hashindex: fix upper limit

use num_buckets (== fully use what we currently have allocated)
This commit is contained in:
Thomas Waldmann 2016-01-14 03:20:17 +01:00
parent 09665805e8
commit 083f5e31ef

View file

@ -155,7 +155,7 @@ int get_lower_limit(int num_buckets){
int get_upper_limit(int num_buckets){
int max_buckets = hash_sizes[NELEMS(hash_sizes) - 1];
if (num_buckets >= max_buckets)
return max_buckets;
return num_buckets;
return (int)(num_buckets * HASH_MAX_LOAD);
}