From b501455e2e6d6c1368f4ae001092e00c337524cb Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Thu, 22 Dec 2022 11:31:37 +0200 Subject: [PATCH] bps -> B/s --- contrib/ui/mesh-ui/ui/assets/mesh-ui-es5.js | 2 +- contrib/ui/mesh-ui/ui/assets/mesh-ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ui/mesh-ui/ui/assets/mesh-ui-es5.js b/contrib/ui/mesh-ui/ui/assets/mesh-ui-es5.js index f9fed634..d8bdf6b8 100644 --- a/contrib/ui/mesh-ui/ui/assets/mesh-ui-es5.js +++ b/contrib/ui/mesh-ui/ui/assets/mesh-ui-es5.js @@ -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 || { diff --git a/contrib/ui/mesh-ui/ui/assets/mesh-ui.js b/contrib/ui/mesh-ui/ui/assets/mesh-ui.js index 2bad7b7e..37c94af0 100644 --- a/contrib/ui/mesh-ui/ui/assets/mesh-ui.js +++ b/contrib/ui/mesh-ui/ui/assets/mesh-ui.js @@ -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 || {