forked from I2P_Developers/i2p.i2p
Console: Don't force profile creation when loading floodfill tab
Don't show negative times Sybil tool: tweaks TunnelRenderer: minor cleanup
This commit is contained in:
@@ -47,7 +47,7 @@ class ProfileOrganizerRenderer {
|
||||
int standard = 0;
|
||||
for (Hash peer : peers) {
|
||||
if (_organizer.getUs().equals(peer)) continue;
|
||||
PeerProfile prof = _organizer.getProfile(peer);
|
||||
PeerProfile prof = _organizer.getProfileNonblocking(peer);
|
||||
if (prof == null)
|
||||
continue;
|
||||
if (mode == 2) {
|
||||
@@ -366,6 +366,9 @@ class ProfileOrganizerRenderer {
|
||||
private String formatInterval(long now, long then) {
|
||||
if (then <= 0)
|
||||
return _t(NA);
|
||||
// avoid 0 or negative
|
||||
if (now <= then)
|
||||
return DataHelper.formatDuration2(1);
|
||||
return DataHelper.formatDuration2(now - then);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user