From f1568d57ebf1cbe4c8e649b80633459bea4ad327 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 3 Aug 2021 16:29:00 -0400 Subject: [PATCH] 17564: Change file size unit base from 1000 to 1024 Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/common/formatters.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" }, { -- 2.30.2