Skip to content

Commit

Permalink
*) Bugfix for ArithmeticException during IndexTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
theli committed Oct 23, 2005
1 parent fd1b083 commit 6c48c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/de/anomic/data/robotsParser.java
Expand Up @@ -244,6 +244,7 @@ private static Object[] downloadRobotsTxt(URL robotsURL, int redirectionCount, p
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 {
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/plasmaWordIndexDistribution.java
Expand Up @@ -797,7 +797,7 @@ public void performTransferWholeIndex() {
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
Expand Down

0 comments on commit 6c48c3c

Please sign in to comment.