forked from I2P_Developers/i2p.i2p
Console: Fix Sybil closest hash tabs
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user