*) 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
pull/1/head
theli 20 years ago
parent fd1b08303e
commit 6c48c3ce39

@ -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 {

@ -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

Loading…
Cancel
Save