aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/utils.js')
-rw-r--r--frontend/src/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/utils.js b/frontend/src/utils.js
index 445e576..4849a92 100644
--- a/frontend/src/utils.js
+++ b/frontend/src/utils.js
@@ -120,8 +120,10 @@ export function formatSize(size) {
return `${size}`;
} else if (size < 1000000) {
return `${(size / 1000).toFixed(1)}K`;
- } else {
+ } else if (size < 1000000000) {
return `${(size / 1000000).toFixed(1)}M`;
+ } else {
+ return `${(size / 1000000000).toFixed(1)}Gi`;
}
}