[pve-devel] [PATCH manager 3/4] ext6migrate: change status units to binary prefixes
Dominik Csapak
d.csapak at proxmox.com
Thu Mar 31 10:30:19 CEST 2016
we used a factor of 2^10 when calculating, but
wrote MB,GB,etc which is not (entirely) correct
this patch changes the units to MiB, GiB, etc,
because this is more sensible than changing the calculation
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/Utils.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index bb755b2..6c8a951 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -624,24 +624,24 @@ Ext.define('PVE.Utils', { statics: {
var kb = size / 1024;
if (kb < 1024) {
- return kb.toFixed(0) + "KB";
+ return kb.toFixed(0) + "KiB";
}
var mb = size / (1024*1024);
if (mb < 1024) {
- return mb.toFixed(0) + "MB";
+ return mb.toFixed(0) + "MiB";
}
var gb = mb / 1024;
if (gb < 1024) {
- return gb.toFixed(2) + "GB";
+ return gb.toFixed(2) + "GiB";
}
var tb = gb / 1024;
- return tb.toFixed(2) + "TB";
+ return tb.toFixed(2) + "TiB";
},
--
2.1.4
More information about the pve-devel
mailing list