size调整

This commit is contained in:
24kycj
2025-04-14 22:23:01 +08:00
parent feceedaaf7
commit 82c95b07a0
5 changed files with 71 additions and 55 deletions
+8 -7
View File
@@ -104,41 +104,42 @@ const CDTypes = {
6: 'BD_TL',
7: 'BD_QL'
}
const size = process.platform === 'linux' ? 1000 : 1024
const cd_types = [
{
value: 1,
label: 'CD 700MB',
size: 700 * 1024 * 1024
size: 700 * size * size
},
{
value: 2,
label: 'DVD 4.7GB',
size: 4.7 * 1024 * 1024 * 1024
size: 4.7 * size * size * size
},
{
value: 3,
label: 'DVD_DL 8.5GB',
size: 8.5 * 1024 * 1024 * 1024
size: 8.5 * size * size * size
},
{
value: 4,
label: 'BD 25GB',
size: 25 * 1024 * 1024 * 1024
size: 25 * size * size * size
},
{
value: 5,
label: 'BD_DL 50GB',
size: 50 * 1024 * 1024 * 1024
size: 50 * size * size * size
},
{
value: 6,
label: 'BD_TL 100GB',
size: 100 * 1024 * 1024 * 1024
size: 100 * size * size * size
},
{
value: 7,
label: 'BD_QL 128GB',
size: 128 * 1024 * 1024 * 1024
size: 128 * size * size * size
}
]