Browse Source

Fix database maximum cache size cap

master
Geoffrey Frogeye 4 months ago
parent
commit
389e83d492
Signed by: geoffrey GPG Key ID: C72403E7F82E6AD8
  1. 2
      database.py

2
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:

Loading…
Cancel
Save