Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
avoid division by zero when index transfer is extremely fast
hermens11fe95832ee8
diff --git a/source/de/anomic/plasma/plasmaWordIndexDistribution.java b/source/de/anomic/plasma/plasmaWordIndexDistribution.javaindex f32409ebd..fa8220d2b 100644--- a/source/de/anomic/plasma/plasmaWordIndexDistribution.java+++ b/source/de/anomic/plasma/plasmaWordIndexDistribution.java@@ -735,7 +735,9 @@ public final class plasmaWordIndexDistribution {}public int getTransferedEntitySpeed() {- return (int) ((1000 * transferedEntryCount) / (System.currentTimeMillis()-startingTime));+ long transferTime = System.currentTimeMillis() - startingTime;+ if (transferTime <= 0) transferTime = 1;+ return (int) ((1000 * transferedEntryCount) / transferTime);}public yacySeed getSeed() {@@ -929,4 +931,4 @@ public final class plasmaWordIndexDistribution {*/}-}\ No newline at end of file+}