Skip to content

Commit 2a73550

Browse files
committed
fix:is not right speed limit on windows
1 parent c554c22 commit 2a73550

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"XLimit": {
5555
"nMaxUPLoad": 0,
56-
"nMaxDNLoad": 102400
56+
"nMaxDNLoad": 1024000
5757
},
5858
"XVer": {
5959
"StorageVersion": [
@@ -64,4 +64,4 @@
6464
"1.0.0.1001 Build20210501"
6565
]
6666
}
67-
}
67+
}

XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ XHTHREAD CALLBACK XEngine_Download_SendThread(LPVOID lParam)
9393
XEngine_Task_SendDownload(tszClientAddr, tszMsgBuffer, nMsgLen);
9494
}
9595
int nTimeWait = 1;
96+
#ifdef _WINDOWS
97+
st_ServiceCfg.st_XLimit.nMaxDNLoader = st_ServiceCfg.st_XLimit.nMaxDNLoader * 10;
98+
#endif
9699
Algorithm_Calculation_SleepFlow(&nTimeWait, st_ServiceCfg.st_XLimit.nMaxDNLoader, nListCount, 4096);
97100
std::this_thread::sleep_for(std::chrono::microseconds(nTimeWait));
98101
}

0 commit comments

Comments
 (0)