mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1362, fixed bug with vpn people
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12493 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
847ddc8c84
commit
c1c3e9793c
@ -72,8 +72,8 @@ public class TransferUtils {
|
||||
|
||||
// currentsize = timediff
|
||||
// sizeleft = x
|
||||
|
||||
long x = sizeleft * timediff / currentsize==0l?1l:currentsize;
|
||||
currentsize = currentsize == 0 ? 1L : currentsize;
|
||||
long x = sizeleft * timediff / currentsize;
|
||||
|
||||
// Make it seconds
|
||||
x = x / 1000;
|
||||
|
||||
@ -25,7 +25,6 @@ import java.awt.Graphics;
|
||||
import java.awt.Image;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
Reference in New Issue
Block a user