projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd49462
)
17564: Change file size unit base from 1000 to 1024
author
Stephen Smith <stephen@curii.com>
Tue, 3 Aug 2021 20:29:00 +0000
(16:29 -0400)
committer
Stephen Smith <stephen@curii.com>
Tue, 3 Aug 2021 20:29:00 +0000
(16:29 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
src/common/formatters.ts
patch
|
blob
|
history
diff --git
a/src/common/formatters.ts
b/src/common/formatters.ts
index eeab703d0d4955f915efa782730135e945ffe83c..779809f1569494da93c599706fd1d977201df46a 100644
(file)
--- 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: 10
00000000000
,
+ base: 10
99511627776
,
unit: "TB"
},
{
- base: 10
00000000
,
+ base: 10
73741824
,
unit: "GB"
},
{
- base: 10
00000
,
+ base: 10
48576
,
unit: "MB"
},
{
- base: 10
00
,
+ base: 10
24
,
unit: "KB"
},
{