mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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)
|
* @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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue