mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 22:10:48 +02:00
Update src/utils.ts
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user