2
0
Эх сурвалжийг харах

Update src/utils.ts

Co-authored-by: Aakansha Doshi <[email protected]>
Lipis 4 жил өмнө
parent
commit
4fd18d1b3e
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/utils.ts

+ 1 - 1
src/utils.ts

@@ -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++;