mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-03-24 12:10:18 +00:00
fix: display file size as base 2 (KiB instead of KB) (#2779)
This commit is contained in:
6
frontend/src/utils/index.js
Normal file
6
frontend/src/utils/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { partial } from "filesize";
|
||||
|
||||
/**
|
||||
* Formats filesize as KiB/MiB/...
|
||||
*/
|
||||
export const filesize = partial({ base: 2 });
|
||||
Reference in New Issue
Block a user