possible fix for negative speed values

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5019 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
lotus 2008-07-27 06:58:35 +00:00
parent 79dba5445d
commit 5f77f55ed7

View File

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