mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update src/utils.ts
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
f8cf19cae9
commit
4fd18d1b3e
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ export const nFormatter = (num: number, digits: number): string => {
|
|||
|
||||
export const formatSpeedBits = (speed: number): string => {
|
||||
// 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;
|
||||
while (speed > 1000) {
|
||||
index++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue