1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-22 08:04:10 +01: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
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -150,7 +150,7 @@ statistics._determineInjections = function () {
avg = sum / days > 0 ? sum / days : 0;
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;
};