fixed DHT cache memory assignment

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@452 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent f663f26cfd
commit f32d8bdfa8

@ -153,8 +153,7 @@ public class yacyCore {
if (!(yacyDBPath.exists())) yacyDBPath.mkdir();
// read memory amount
int mem = Integer.parseInt(switchboard.getConfig("ramCacheSize", "1")) * 0x400 *
Integer.parseInt(switchboard.getConfig("ramCachePercentDHT", "1")) / 100;
int mem = Integer.parseInt(switchboard.getConfig("ramCacheDHT", "1024")) / 1024;
log.logSystem("DHT Cache memory = " + mem + " KB");
// create or init seed cache

@ -449,6 +449,9 @@ ramCacheNURL = 524288
# ram cache for urlErr.db
ramCacheEURL = 131072
# ram cache for seedDBs
ramCacheDHT = 131072
# ram cache for message.db
ramCacheMessage = 8192

Loading…
Cancel
Save