mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): storage decimals (#5363)
This commit is contained in:
parent
5781ae9d82
commit
9483c456d4
2 changed files with 3 additions and 2 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'];
|
||||
const units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB'];
|
||||
|
||||
let magnitude = 0;
|
||||
let remainder = bytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue