mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Update server listing and associated logic to pull from the panel dynamiacally
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
export function bytesToHuman (bytes: number): string {
|
||||
if (bytes === 0) {
|
||||
return '0 kB';
|
||||
}
|
||||
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(1000));
|
||||
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user