diff --git a/database.py b/database.py index 391d65f..c3b8f4d 100644 --- a/database.py +++ b/database.py @@ -241,7 +241,7 @@ class Database(Profiler): "the Ip4 cache is not necessary.") max_cache_width = int(math.log2(max(1, max_size*8))) allocated = False - cache_width = min(2**32, max_cache_width) + cache_width = min(32, max_cache_width) while not allocated: cache_size = 2**cache_width try: