diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/pi-hole/js/settings-system.js index d635d909..a0a7fe49 100644 --- a/scripts/pi-hole/js/settings-system.js +++ b/scripts/pi-hole/js/settings-system.js @@ -59,9 +59,11 @@ function setMetrics(data, prefix) { setMetrics(val, prefix + key + "-"); } else if (prefix === "sysinfo-dns-replies-") { // Compute and display percentage of DNS replies in addition to the absolute value - $("#" + prefix + key).text(val + " (" + ((100 * val) / data.sum).toFixed(1) + "%)"); + const lval = val.toLocaleString(); + $("#" + prefix + key).text(lval + " (" + ((100 * val) / data.sum).toFixed(1) + "%)"); } else { - $("#" + prefix + key).text(val); + const lval = val.toLocaleString(); + $("#" + prefix + key).text(lval); } } }