فهرست منبع

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)
  * @returns size (number) and unit (string)
  */
  */
 export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, 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 magnitude = 0;
   let remainder = bytes;
   let remainder = bytes;