Merge branch 'aakansha-net-stats' of github.com:excalidraw/excalidraw into aakansha-net-stats

* 'aakansha-net-stats' of github.com:excalidraw/excalidraw:
  Update src/utils.ts
  Update Stats.scss
This commit is contained in:
Panayiotis Lipiridis 2021-02-07 15:52:01 +02:00
commit 163dbd47d4
2 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@
} }
tr { tr {
td:nth-child(2) { td:nth-child(2) {
padding-left: 8px;
min-width: 24px; min-width: 24px;
text-align: right; text-align: right;
} }

View File

@ -365,7 +365,7 @@ export const nFormatter = (num: number, digits: number): string => {
export const formatSpeedBits = (speed: number): string => { export const formatSpeedBits = (speed: number): string => {
// source: https://en.wikipedia.org/wiki/Data-rate_units#Conversion_table // source: https://en.wikipedia.org/wiki/Data-rate_units#Conversion_table
const suffix = ["bit/s", "kbit/s", "Mbit/s", "Gbit/s"]; const suffix = ["bps", "kbps", "Mbps", "Gbps"];
let index = 0; let index = 0;
while (speed > 1000) { while (speed > 1000) {
index++; index++;