possible fix for negative speed values

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5019 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 17 years ago
parent 79dba5445d
commit 5f77f55ed7

@ -110,7 +110,7 @@ public class plasmaDHTFlush extends Thread {
public int getTransferedEntrySpeed() { public int getTransferedEntrySpeed() {
long transferTime = System.currentTimeMillis() - this.startingTime; long transferTime = System.currentTimeMillis() - this.startingTime;
if (transferTime <= 0) transferTime = 1; if (transferTime <= 0) transferTime = 1;
return (int) ((1000 * this.transferedEntryCount) / transferTime); return (int) ((1000L * (long) this.transferedEntryCount) / transferTime);
} }
public yacySeed getSeed() { public yacySeed getSeed() {

Loading…
Cancel
Save