[ARVADOS-WORKBENCH2] created: 2.2.1-54-gf1568d57

Git user git at public.arvados.org
Tue Aug 3 20:29:48 UTC 2021


        at  f1568d57ebf1cbe4c8e649b80633459bea4ad327 (commit)


commit f1568d57ebf1cbe4c8e649b80633459bea4ad327
Author: Stephen Smith <stephen at curii.com>
Date:   Tue Aug 3 16:29:00 2021 -0400

    17564: Change file size unit base from 1000 to 1024
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/common/formatters.ts b/src/common/formatters.ts
index eeab703d..779809f1 100644
--- a/src/common/formatters.ts
+++ b/src/common/formatters.ts
@@ -66,19 +66,19 @@ export function formatUploadSpeed(prevLoaded: number, loaded: number, prevTime:
 
 const FILE_SIZES = [
     {
-        base: 1000000000000,
+        base: 1099511627776,
         unit: "TB"
     },
     {
-        base: 1000000000,
+        base: 1073741824,
         unit: "GB"
     },
     {
-        base: 1000000,
+        base: 1048576,
         unit: "MB"
     },
     {
-        base: 1000,
+        base: 1024,
         unit: "KB"
     },
     {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list