This commit is contained in:
Administrator
2022-12-27 17:38:49 +08:00
parent 6dd349e722
commit c791720f95
18 changed files with 292 additions and 67 deletions
@@ -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 {