mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
parent
f1c25e7d77
commit
781b3d4988
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ function fdate(when) {
|
|||
|
||||
function fbits(bits) {
|
||||
var sizes = ['bps', 'Kbit/s', 'Mbit/s', 'Gbit/s', 'Tbit/s'];
|
||||
if(bits == 0) return 'n/a';
|
||||
if(bits == 0) return '';
|
||||
var i = parseInt(Math.floor(Math.log(bits) / Math.log(1000)));
|
||||
return Math.round(bits / Math.pow(1000, i), 2) + ' ' + sizes[i];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue