sybil: hide families with only one member

This commit is contained in:
zzz
2018-04-05 14:22:28 +00:00
parent 43e6bb7569
commit eb175f5542

View File

@@ -603,8 +603,10 @@ class SybilRenderer {
for (String s : foo) {
int count = oc.count(s);
String ss = DataHelper.escapeHTML(s);
buf.append("<p class=\"family\"><b>").append(count).append(" floodfills in family: &nbsp;<a href=\"/netdb?fam=")
.append(ss).append("&amp;sybil\">").append(ss).append("</a></b></p>");
if (count > 1) {
buf.append("<p class=\"family\"><b>").append(count).append(" floodfills in family: &nbsp;<a href=\"/netdb?fam=")
.append(ss).append("&amp;sybil\">").append(ss).append("</a></b></p>");
}
for (RouterInfo info : ris) {
String fam = info.getOption("family");
if (fam == null)