mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: change file name
This commit is contained in:
parent
28d1aec413
commit
f710dcdd49
6 changed files with 15 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const FORMAT = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
|
||||
export const byteFormat = (bytes: number): string => {
|
||||
export const formatBytes = (bytes: number): string => {
|
||||
if (!Number.isFinite(bytes) || isNaN(bytes) || bytes < 0) {
|
||||
return `N/A ${FORMAT[0]}`;
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
export * from "./byteFormat";
|
||||
export * from "./format-bytes";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue