mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-16 13:32:27 -04:00
Show rrt
This commit is contained in:
parent
6daf959f78
commit
d6e6a52010
5 changed files with 13 additions and 11 deletions
|
@ -44,8 +44,6 @@ public class P2pNetworkListItem {
|
|||
private final StringProperty receivedBytes = new SimpleStringProperty();
|
||||
private final StringProperty peerType = new SimpleStringProperty();
|
||||
private final StringProperty connectionType = new SimpleStringProperty();
|
||||
|
||||
|
||||
private final StringProperty roundTripTime = new SimpleStringProperty();
|
||||
private final StringProperty onionAddress = new SimpleStringProperty();
|
||||
private final Clock.Listener listener;
|
||||
|
@ -63,7 +61,7 @@ public class P2pNetworkListItem {
|
|||
onionAddressSubscription = EasyBind.subscribe(connection.peersNodeAddressProperty(),
|
||||
nodeAddress -> onionAddress.set(nodeAddress != null ? nodeAddress.getFullAddress() : "Not known yet"));
|
||||
roundTripTimeSubscription = EasyBind.subscribe(statistic.roundTripTimeProperty(),
|
||||
roundTripTime -> this.roundTripTime.set(DurationFormatUtils.formatDuration((long) roundTripTime, "ss.SSS")));
|
||||
roundTripTime -> this.roundTripTime.set((int) roundTripTime == 0 ? "-" : roundTripTime + " ms"));
|
||||
|
||||
listener = new Clock.Listener() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue