Console: Fix Sybil closest hash tabs

This commit is contained in:
zzz
2022-04-12 09:03:38 -04:00
parent eaa526583d
commit 53eb6ba7e0

View File

@@ -759,8 +759,9 @@ public class SybilRenderer {
for (int i = 0; i < count; i++) {
RouterInfo ri = ris.get(i);
double dist = renderRouterInfo(buf, ri, us, false, false);
if (dist < MIN_CLOSE)
break;
// just show all 10 so we get the total stats right
//if (dist > MIN_CLOSE)
// break;
if (dist < avgMinDist) {
if (i == 0) {
//buf.append("<p><b>Not to worry, but above router is closer than average minimum distance " + fmt.format(avgMinDist) + "</b></p>");
@@ -825,7 +826,7 @@ public class SybilRenderer {
buf.append("<th colspan=\"2\"><a name=\"our-info\" ></a><b>" + _t("Our info") + ":</b> <code>").append(hash)
.append("</code></th></tr>\n<tr><td class=\"sybilinfo_params\" colspan=\"2\"><div class=\"sybilinfo_container\">");
} else {
buf.append("<th><b>" + _t("Router") + ":</b> <a href=\"netdb?r=").append(hash, 0, 6).append("\"><code>").append(hash).append("</code></a>\n");
buf.append("<th><b>" + _t("Router") + ":</b> <a href=\"netdb?r=").append(hash).append("\"><code>").append(hash).append("</code></a>\n");
String country = _context.commSystem().getCountry(info.getIdentity().getHash());
buf.append("</th><th>");