]> git.wh0rd.org - chrome-ext/tabs-backup.git/commitdiff
use SI unit labels
authorMike Frysinger <vapier@gentoo.org>
Tue, 18 Feb 2020 06:11:51 +0000 (01:11 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 18 Feb 2020 06:11:51 +0000 (01:11 -0500)
popup.js

index 7c5f2f5e3de8f1c8b51440dfbaa04859ad1535b4..b1d3c9cd4ee79c2ce762e10497f96c8858794869 100644 (file)
--- 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");