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:
Wolf Posdorfer
2011-06-16 11:15:04 +00:00
committed by wolf.posdorfer
parent 847ddc8c84
commit c1c3e9793c
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;