From 9b88433f4519033f3f2e68bcb3a74dc5deb6bad8 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 10 Aug 2012 15:44:37 +0200 Subject: [PATCH] patch from hint in http://forum.yacy-websuche.de/viewtopic.php?p=26858#p26858 from gaston --- htroot/yacy/transferRWI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.java index 7915ea355..2532df95d 100644 --- a/htroot/yacy/transferRWI.java +++ b/htroot/yacy/transferRWI.java @@ -216,9 +216,9 @@ public final class transferRWI { final Iterator bit = unknownURL.iterator(); unknownURLs.ensureCapacity(unknownURL.size() * 25); while (bit.hasNext()) { - unknownURLs.append(",").append(UTF8.String(bit.next())); + unknownURLs.append(UTF8.String(bit.next())).append(','); } - if (unknownURLs.length() > 0) { unknownURLs.delete(0, 1); } + if (unknownURLs.length() > 0) { unknownURLs.setLength(unknownURLs.length() - 1); } if (wordhashes.isEmpty() || received == 0) { sb.getLog().logInfo("Received 0 RWIs from " + otherPeerName + ", processed in " + (System.currentTimeMillis() - startProcess) + " milliseconds, requesting " + unknownURL.size() + " URLs, blocked " + blocked + " RWIs"); } else {