fixed problem created with last svn commit

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@810 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 0054d3b1a6
commit 25a59a51ad

@ -293,6 +293,7 @@ public class Network {
links = Long.parseLong(seed.get("LCount", "0"));
words = Long.parseLong(seed.get("ICount", "0"));
} catch (Exception exc) {links = 0; words = 0;}
prop.put(STR_TABLE_LIST+conCount+"_hash", seed.hash);
String shortname = seed.get("Name", "deadlink");
if (shortname.length() > 20) {
shortname = shortname.substring(0, 20) + "...";

@ -126,7 +126,7 @@ public class kelondroDyn extends kelondroTree {
}
private byte[] dynKey(String key, int record) {
if (key.length() > keylen) throw new RuntimeException("key len out of limit:" + key.length());
if (key.length() > keylen) throw new RuntimeException("key len (" + key.length() + ") out of limit (" + keylen + "): '" + key + "'");
while (key.length() < keylen) key = key + "_";
key = key + counter(record);
return key.getBytes();

Loading…
Cancel
Save