Fix MiBps label
Closes https://github.com/benphelps/homepage/issues/562 See https://en.wikipedia.org/wiki/Kilobyte
This commit is contained in:
parent
2631e15275
commit
aadedd1864
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue