Console: Set minimum displayed profile thresholds to 1

This commit is contained in:
zzz
2023-02-13 07:19:31 -05:00
parent 546e51e3d9
commit 6a04eedb9e

View File

@ -287,11 +287,11 @@ class ProfileOrganizerRenderer {
buf.append("<h3 class=\"tabletitle\">").append(_t("Thresholds")).append("</h3>\n")
.append("<table id=\"thresholds\"><tbody>")
.append("<tr><th><b>")
.append(_t("Speed")).append(": </b>").append(num(_organizer.getSpeedThreshold()))
.append(_t("Speed")).append(": </b>").append(num(Math.max(1, _organizer.getSpeedThreshold())))
.append("</th><th><b>")
.append(_t("Capacity")).append(": </b>").append(num(_organizer.getCapacityThreshold()))
.append(_t("Capacity")).append(": </b>").append(num(Math.max(1, _organizer.getCapacityThreshold())))
.append("</th><th><b>")
.append(_t("Integration")).append(": </b>").append(num(_organizer.getIntegrationThreshold()))
.append(_t("Integration")).append(": </b>").append(num(Math.max(1, _organizer.getIntegrationThreshold())))
.append("</th></tr><tr><td>")
.append(ngettext("{0} fast peer", "{0} fast peers", fast))
.append("</td><td>")