From: Mike Frysinger Date: Tue, 18 Feb 2020 06:11:51 +0000 (-0500) Subject: use SI unit labels X-Git-Tag: v0.3~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bb188d7724872d5509c9bacecf8d919bad3427bb;p=chrome-ext%2Ftabs-backup.git use SI unit labels --- diff --git a/popup.js b/popup.js index 7c5f2f5..b1d3c9c 100644 --- a/popup.js +++ b/popup.js @@ -298,9 +298,9 @@ function updateStorageInfo() { if (bytesInUse < 1024) { storageText = bytesInUse.toFixed(2) + " bytes"; } else if (bytesInUse < 1024 * 1024) { - storageText = (bytesInUse / 1024).toFixed(2) + " Kb"; + storageText = (bytesInUse / 1024).toFixed(2) + " KiB"; } else { - storageText = (bytesInUse / (1024 * 1024)).toFixed(2) + " Mb"; + storageText = (bytesInUse / (1024 * 1024)).toFixed(2) + " MiB"; } var storageSpan = document.getElementById("storageSpan");