From bfd27bc27d3bdcc9913f5a983a58b6b3da3285a5 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 13 Mar 2024 00:25:06 +0200 Subject: [PATCH] format core --- static/js/custom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/custom.js b/static/js/custom.js index 7c6130572..793737311 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -183,7 +183,9 @@ function formatStatsData(stats) { document.getElementById("capacity").innerHTML = stats.capacity; document.getElementById("nodes").innerHTML = stats.nodes; document.getElementById("countries").innerHTML = stats.countries; - document.getElementById("cores").innerHTML = stats.cores; + document.getElementById("cores").innerHTML = stats.cores + .toString() + .replace(/\B(?=(\d{3})+(?!\d))/g, ","); } readingTime();