From aadedd186402d6ef52a7ab1044bb16a9c93063d8 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 27 Nov 2022 14:26:36 -0800 Subject: [PATCH] Fix MiBps label Closes https://github.com/benphelps/homepage/issues/562 See https://en.wikipedia.org/wiki/Kilobyte --- next-i18next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index c6e1f2feb..da83ed70e 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -103,7 +103,7 @@ module.exports = { const bits = options.bits ? value : value / 8; const k = 1024; const dm = options.decimals ? options.decimals : 0; - const sizes = ["Bps", "Kbps", "Mbps", "Gbps", "Tbps", "Pbps", "Ebps", "Zbps", "Ybps"]; + const sizes = ["Bps", "Kbps", "MiBps", "Gbps", "Tbps", "Pbps", "Ebps", "Zbps", "Ybps"]; const i = Math.floor(Math.log(bits) / Math.log(k));