feat(web): prefer higher GiB values (#5340)
This commit is contained in:
parent
0758d55dea
commit
ebd64ded62
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue