diff --git a/web/public/js/utils.js b/web/public/js/utils.js index 97b82991..f96145e7 100644 --- a/web/public/js/utils.js +++ b/web/public/js/utils.js @@ -182,22 +182,22 @@ window.teaweb = { let divider = 1 let unit = "" if (max >= Math.pow(1024, 6)) { - unit = "EB" + unit = "E" divider = Math.pow(1024, 6) } else if (max >= Math.pow(1024, 5)) { - unit = "PB" + unit = "P" divider = Math.pow(1024, 5) } else if (max >= Math.pow(1024, 4)) { - unit = "TB" + unit = "T" divider = Math.pow(1024, 4) } else if (max >= Math.pow(1024, 3)) { - unit = "GB" + unit = "G" divider = Math.pow(1024, 3) } else if (max >= Math.pow(1024, 2)) { - unit = "MB" + unit = "M" divider = Math.pow(1024, 2) } else if (max >= Math.pow(1024, 1)) { - unit = "KB" + unit = "K" divider = Math.pow(1024, 1) } return {