Add port to upstream legend key if available

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-27 18:35:34 +02:00
parent 3c086b051c
commit 86aa24a8e2

View File

@@ -207,8 +207,8 @@ function updateForwardDestinationsPie() {
// Collect values and colors
data.upstreams.forEach(function (item) {
var label = item.ip;
if (item.name.length > 0) {
label = item.ip;
if (item.port > 0) {
label += "#" + item.port;
}
var percent = (100 * item.count) / sum;