forked from KNEMC/KLALB
V1.0
This commit is contained in:
@@ -193,6 +193,13 @@ public class KLALBClientGUI extends XFrame {
|
||||
}
|
||||
repaint();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTraffic(long up, long down, long ups, long downs) {
|
||||
tp.setTraffic(up,down,ups,downs);
|
||||
repaint();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
ysp.updateUI();
|
||||
@@ -217,6 +224,13 @@ public class KLALBClientGUI extends XFrame {
|
||||
|
||||
while(true) {
|
||||
Thread.sleep(999);
|
||||
List<Tunnel>ts=kc.getTls();
|
||||
synchronized(ts) {
|
||||
for(int i=0;i<ts.size();i++) {
|
||||
Tunnel t=ts.get(i) ;
|
||||
t.updateTraffics(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (ConnectException e) {
|
||||
@@ -228,6 +242,7 @@ public class KLALBClientGUI extends XFrame {
|
||||
if(kc!=null) {
|
||||
kc.close();
|
||||
}
|
||||
wv.removeAll();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user