repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
helpers
/
size.ts
blob
bc940b471e4c6cd024121d3d250f58972c8fd85b
1
export const BASE_SIZE = 1024;
2
3
export const sizeUnits = {
4
B: 1,
5
KB: BASE_SIZE,
6
MB: BASE_SIZE * BASE_SIZE,
7
GB: BASE_SIZE * BASE_SIZE * BASE_SIZE,
8
TB: BASE_SIZE * BASE_SIZE * BASE_SIZE * BASE_SIZE,
9
};