浏览代码

feat(web): prefer higher GiB values (#5340)

Jason Rasmussen 1 年之前
父节点
当前提交
ebd64ded62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/src/lib/utils/byte-units.ts

+ 1 - 1
web/src/lib/utils/byte-units.ts

@@ -9,7 +9,7 @@
  * @returns size (number) and unit (string)
  */
 export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, string] {
-  const units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB'];
+  const units = ['B', 'KiB', 'MiB', 'GiB'];
 
   let magnitude = 0;
   let remainder = bytes;