From 6c48c3ce391b7389fd8ee28b12d2b23768837b23 Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 23 Oct 2005 16:07:44 +0000 Subject: [PATCH] *) Bugfix for ArithmeticException during IndexTransfer See: http://www.yacy-forum.de/viewtopic.php?t=1362 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@974 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/robotsParser.java | 1 + source/de/anomic/plasma/plasmaWordIndexDistribution.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/data/robotsParser.java b/source/de/anomic/data/robotsParser.java index 523f3d5a8..672a2309d 100644 --- a/source/de/anomic/data/robotsParser.java +++ b/source/de/anomic/data/robotsParser.java @@ -244,6 +244,7 @@ public final class robotsParser{ try { downloadStart = System.currentTimeMillis(); plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard(); + //TODO: adding Traffic statistic for robots download? if ((sb.remoteProxyConfig == null) || (!sb.remoteProxyConfig.useProxy())) { con = httpc.getInstance(robotsURL.getHost(), robotsURL.getPort(), 10000, false); } else { diff --git a/source/de/anomic/plasma/plasmaWordIndexDistribution.java b/source/de/anomic/plasma/plasmaWordIndexDistribution.java index 9abbe1ef2..5d491d141 100644 --- a/source/de/anomic/plasma/plasmaWordIndexDistribution.java +++ b/source/de/anomic/plasma/plasmaWordIndexDistribution.java @@ -797,7 +797,7 @@ public final class plasmaWordIndexDistribution { plasmaWordIndexDistribution.this.log.logInfo("Index selection of " + idxCount + " words [" + newIndexEntities[0].wordHash() + " .. " + newIndexEntities[newIndexEntities.length-1].wordHash() + "]" + " in " + (selectionTime / 1000) + " seconds (" + - (1000 * idxCount / (selectionTime)) + " words/s)"); + (1000 * idxCount / (selectionTime+1)) + " words/s)"); } // query status of old worker thread