Localize report page

This commit is contained in:
emanuele-f 2017-04-05 19:24:39 +02:00
parent f0acc453a8
commit 7ff33f2e64
4 changed files with 50 additions and 3 deletions

View file

@ -96,7 +96,6 @@ function fbits(bits) {
var sizes = ['bps', 'kbit/s', 'Mbit/s', 'Gbit/s', 'Tbit/s'];
if(bits <= 0) return '0';
var bits_log1000 = Math.log(bits) / Math.log(1000)
console.log(bits)
var i = parseInt(Math.floor(bits_log1000));
if (i < 0 || isNaN(i)) {
i = 0;