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:
commit
163dbd47d4
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user