1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved: Formatting of the decimal numbers (#74)

This commit is contained in:
nobody
2020-08-12 16:11:06 +02:00
parent 94ad3820df
commit 9a22b4a69b

View File

@@ -150,7 +150,7 @@ statistics._determineInjections = function () {
avg = sum / days > 0 ? sum / days : 0; avg = sum / days > 0 ? sum / days : 0;
avg = Math.round((avg + Number.EPSILON) * 100) / 100; avg = Math.round((avg + Number.EPSILON) * 100) / 100;
document.getElementById('avg-quantity').textContent = isNaN(avg) ? '-' : avg; document.getElementById('avg-quantity').textContent = isNaN(avg) ? '-' : helpers.formatNumber(avg);
document.getElementById('quantity-injected-frameworks').textContent = isNaN(sum) ? '-' : sum; document.getElementById('quantity-injected-frameworks').textContent = isNaN(sum) ? '-' : sum;
}; };