forked from Qortal/qortal
Converted time format
This commit is contained in:
parent
1adc9349fc
commit
bb0269f484
@ -58,7 +58,7 @@ public class ConnectedPeer {
|
|||||||
long age = (System.currentTimeMillis() - peer.getConnectionEstablishedTime());
|
long age = (System.currentTimeMillis() - peer.getConnectionEstablishedTime());
|
||||||
long minutes = TimeUnit.MILLISECONDS.toMinutes(age);
|
long minutes = TimeUnit.MILLISECONDS.toMinutes(age);
|
||||||
long seconds = TimeUnit.MILLISECONDS.toSeconds(age) - TimeUnit.MINUTES.toSeconds(minutes);
|
long seconds = TimeUnit.MILLISECONDS.toSeconds(age) - TimeUnit.MINUTES.toSeconds(minutes);
|
||||||
this.age = String.format("%02d min, %02d sec", minutes, seconds);
|
this.age = String.format("%dm %ds", minutes, seconds);
|
||||||
} else {
|
} else {
|
||||||
this.age = "connecting...";
|
this.age = "connecting...";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user