This commit is contained in:
jxxghp
2023-11-06 11:42:13 +08:00
parent 52bbf65fa8
commit 315274abf9
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "moviepilot",
"version": "1.4.0",
"version": "1.4.0-1",
"private": true,
"bin": "dist/service.js",
"scripts": {
@@ -106,4 +106,4 @@
"resolutions": {
"postcss": "8"
}
}
}

View File

@@ -55,7 +55,7 @@ export function formatFileSize(bytes: number) {
if (bytes < 0)
throw new Error('字节数不能为负数。')
const units = ['B', 'K', 'M', 'G', 'T']
const units = ['B', 'KB', 'MB', 'GB', 'TB']
let size = bytes
let unitIndex = 0

View File

@@ -89,10 +89,10 @@ onUnmounted(() => {
<VCardText class="pt-4">
<div>
<p class="text-h5 me-2">
{{ formatFileSize(downloadInfo.upload_speed) }}B/s
{{ formatFileSize(downloadInfo.upload_speed) }}/s
</p>
<p class="text-h4 me-2">
{{ formatFileSize(downloadInfo.download_speed) }}B/s
{{ formatFileSize(downloadInfo.download_speed) }}/s
</p>
</div>
<VList class="card-list mt-9">