From: Stephen Smith Date: Tue, 3 Aug 2021 20:29:00 +0000 (-0400) Subject: 17564: Change file size unit base from 1000 to 1024 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/f1568d57ebf1cbe4c8e649b80633459bea4ad327?hp=--cc 17564: Change file size unit base from 1000 to 1024 Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- f1568d57ebf1cbe4c8e649b80633459bea4ad327 diff --git a/src/common/formatters.ts b/src/common/formatters.ts index eeab703d0d..779809f156 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" }, {