Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 38c4073

Browse files
author
ZeroWolf233
committed
fix: 修复当不指定下载线程时,下载线程为NaN的bug
1 parent ed43683 commit 38c4073

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openmcim",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "mcim@home",
55
"bin": "dist/openmcim.js",
66
"private": true,

src/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class Cluster {
187187
notTTYSchedule: ms('10s'),
188188
})
189189
const totalBar = multibar.create(missingFiles.length, 0, {filename: '总文件数'})
190-
const parallel = Number(process.env.THREADS) ?? syncConfig.concurrency
190+
const parallel = Number(process.env.THREADS) || syncConfig.concurrency
191191
logger.info(`您当前的下载线程: ${parallel} `)
192192
let hasError = false
193193
await pMap(

0 commit comments

Comments
 (0)