Author: j16sdiz
Date: 2008-12-14 13:20:23 +0000 (Sun, 14 Dec 2008)
New Revision: 24311
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
be conservative on guessing minimun prefix length
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-12-14 13:20:14 UTC (rev
24310)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-12-14 13:20:23 UTC (rev
24311)
@@ -573,7 +573,7 @@
}
indices = new Vector<String>();
- int prefix = (int)(( Math.log(tMap.size()) -
Math.log(MAX_ENTRIES) ) / Math.log(16));
+ int prefix = (int)(( Math.log(tMap.size()) -
Math.log(MAX_ENTRIES) ) / Math.log(16)) - 1;
if (prefix <= 0) prefix = 1;
match = 1;
Vector<String> list = new Vector<String>();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs