OCT 1. 修正下载时间超时计算

This commit is contained in:
huangxin 2023-02-21 09:44:54 +08:00
parent 18ff9d155b
commit 8dc41c49cd
1 changed files with 4 additions and 2 deletions

View File

@ -500,10 +500,12 @@ static void onDlTimeoutCb(uv_timer_t *UNUSED(pufTimer)) {
if ((dlTime * 10000 > pItem->pCurlItem->dlSize) && dlTime > 10) { if ((dlTime * 10000 > pItem->pCurlItem->dlSize) && dlTime > 10) {
LOG_MOD(error, LOG_MOD(error,
ZLOG_MOD_NET, ZLOG_MOD_NET,
"Download Speed less than 10k/s: %s (%uK/%llu(s))\n", "Download Speed less than 10k/s: %s (%uK/%llu(s)), beging at %u now %u\n",
pItem->pTaskUuid, pItem->pTaskUuid,
pItem->pCurlItem->dlSize / 1000, pItem->pCurlItem->dlSize / 1000,
dlTime); dlTime,
curTm,
pItem->pCurlItem->createTm);
cancelDownloadTask(pItem->pCurlItem); cancelDownloadTask(pItem->pCurlItem);
if (pItem->pCurlItem->onRspCb) { if (pItem->pCurlItem->onRspCb) {