From 0b591220071147a27bb483c4c5d4da5bb66872d4 Mon Sep 17 00:00:00 2001 From: Drew Nutter Date: Wed, 12 Oct 2016 19:33:36 -0400 Subject: [PATCH] fix size units We have been using 10^3 based unit names to refer to 2^10 based units. This is misleading and should be fixed. --- static/functions/script_start.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/static/functions/script_start.js b/static/functions/script_start.js index ac7b76cd..96fea455 100644 --- a/static/functions/script_start.js +++ b/static/functions/script_start.js @@ -92,23 +92,23 @@ function get_size(size) { switch (steps) { case 1: ext = ' B'; break; - case 1: ext = ' KB'; + case 1: ext = ' KiB'; break; - case 2: ext = ' MB'; + case 2: ext = ' MiB'; break; - case 3: ext = ' GB'; + case 3: ext = ' GiB'; break; - case 4: ext = ' TB'; + case 4: ext = ' TiB'; break; - case 5: ext = ' PB'; + case 5: ext = ' PiB'; break; - case 6: ext = ' EB'; + case 6: ext = ' EiB'; break; - case 7: ext = ' ZB'; + case 7: ext = ' ZiB'; break; - case 8: ext = ' EB'; + case 8: ext = ' EiB'; break; - default: "0.00 MB"; + default: "0.00 MiB"; } return (size.toFixed(2) + ext); }