Console: Don't show -1 remote leasesets before we have ours

This commit is contained in:
zzz
2025-04-24 13:45:39 -04:00
parent 6fa725b755
commit 950f04bd38

View File

@ -732,7 +732,7 @@ class NetDbRenderer {
renderLeaseSet(buf, myLeaseSet, true, now, linkSusi, null);
buf.append("</td></tr>\n");
}
buf.append("<tr><td><b>Total Known Remote Leasesets:</b></td><td colspan=\"3\">").append(leases.size()-1).append("</td></tr>\n");
buf.append("<tr><td><b>Total Known Remote Leasesets:</b></td><td colspan=\"3\">").append(Math.max(leases.size()-1, 0)).append("</td></tr>\n");
} else {
buf.append("<tr><th colspan=\"3\">Leaseset Summary for Floodfill</th>" +
"<th><a href=\"/configadvanced\" title=\"").append(_t("Manually Configure Floodfill Participation")).append("\">[")