瀏覽代碼

Update src/utils.ts

Co-authored-by: Aakansha Doshi <[email protected]>
Lipis 4 年之前
父節點
當前提交
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++;