Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

possible fix for negative speed values

lotus5f77f55ed748
diff --git a/source/de/anomic/plasma/plasmaDHTFlush.java b/source/de/anomic/plasma/plasmaDHTFlush.java
index d6f16a740..19f6f1b33 100644
--- a/source/de/anomic/plasma/plasmaDHTFlush.java
+++ b/source/de/anomic/plasma/plasmaDHTFlush.java
@@ -110,7 +110,7 @@ public class plasmaDHTFlush extends Thread {
public int getTransferedEntrySpeed() {
long transferTime = System.currentTimeMillis() - this.startingTime;
if (transferTime <= 0) transferTime = 1;
- return (int) ((1000 * this.transferedEntryCount) / transferTime);
+ return (int) ((1000L * (long) this.transferedEntryCount) / transferTime);
}
public yacySeed getSeed() {