Update src/utils.ts

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
Lipis 2021-02-07 14:55:50 +02:00 committed by GitHub
parent f8cf19cae9
commit 4fd18d1b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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