mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
79dba5445d
commit
5f77f55ed7
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user