From 5f77f55ed74812f412a7bddf4d2d8cbc4d654803 Mon Sep 17 00:00:00 2001 From: lotus Date: Sun, 27 Jul 2008 06:58:35 +0000 Subject: [PATCH] possible fix for negative speed values git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5019 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaDHTFlush.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {