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:
zzz
2015-12-06 16:47:34 +00:00
parent 826bb54984
commit b6e8431bce
3 changed files with 10 additions and 9 deletions

View File

@@ -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);
}