diff options
Diffstat (limited to 'packages/ui-new/src/components/instance-editor-modal.tsx')
| -rw-r--r-- | packages/ui-new/src/components/instance-editor-modal.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ui-new/src/components/instance-editor-modal.tsx b/packages/ui-new/src/components/instance-editor-modal.tsx index 012e62c..74e0873 100644 --- a/packages/ui-new/src/components/instance-editor-modal.tsx +++ b/packages/ui-new/src/components/instance-editor-modal.tsx @@ -196,7 +196,7 @@ export function InstanceEditorModal({ open, instance, onOpenChange }: Props) { const k = 1024; const sizes = ["B", "KB", "MB", "GB", "TB"]; const i = Math.floor(Math.log(bytes) / Math.log(k)); - return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`; + return `${Math.round((bytes / k ** i) * 100) / 100} ${sizes[i]}`; } function formatDate( |