mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-24 16:05:07 +03:00
bps -> B/s
This commit is contained in:
parent
c8b70f5611
commit
b501455e2e
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ function togglePrivKeyVisibility() {
|
|||
function humanReadableSpeed(speed) {
|
||||
if (speed < 0) return "? B/s";
|
||||
var i = speed < 1 ? 0 : Math.floor(Math.log(speed) / Math.log(1024));
|
||||
return (speed / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['bps', 'kbps', 'Mbps', 'Gbps', 'Tbps'][i];
|
||||
return (speed / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B/s', 'kB/s', 'MB/s', 'GB/s', 'TB/s'][i];
|
||||
}
|
||||
|
||||
var ui = ui || {
|
||||
|
|
|
@ -227,7 +227,7 @@ function togglePrivKeyVisibility() {
|
|||
function humanReadableSpeed(speed) {
|
||||
if (speed < 0) return "? B/s";
|
||||
var i = speed < 1 ? 0 : Math.floor(Math.log(speed) / Math.log(1024));
|
||||
return (speed / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['bps', 'kbps', 'Mbps', 'Gbps', 'Tbps'][i];
|
||||
return (speed / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B/s', 'kB/s', 'MB/s', 'GB/s', 'TB/s'][i];
|
||||
}
|
||||
|
||||
var ui = ui || {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue