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

Commit 54a5860

Browse files
committed
✨ 添加线程数量选项
1 parent d057b5c commit 54a5860

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$config=[
33
"CLUSTER_ID"=> "",
44
"CLUSTER_SECRET"=> "",
5+
"MaxConcurrent"=> 10,//下载使用的线程
56
"Staging"=> false,//切换Staging环境
67
"Debug"=> true,//Debug开关
78
];

main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function registerSigintHandler() {
5858
if (is_array($Missfile)){
5959
mlog("缺失/损坏".count($Missfile)."个文件");
6060
while(is_array($Missfile)){
61-
$download = new download($Missfile,10);
61+
$download = new download($Missfile,$config['maxConcurrent']);
6262
$download->downloadFiles();
6363
$FilesCheck = new FilesCheck($Missfile);
6464
$Missfile = $FilesCheck->FilesCheckerhash();

0 commit comments

Comments
 (0)