chore: send file with specified speed

This commit is contained in:
Cary Xu 2022-09-27 14:30:53 +08:00
parent 43c954b6e7
commit 024f6a2149
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ static int64_t tsdbFSendFile(STsdb *pTsdb, TdFilePtr pOutFD, TdFilePtr pInFD, in
goto _send_remain; goto _send_remain;
} }
startMs = taosGetTimestampMs(); startMs = taosGetTimestampMs();
if ((nBytes = taosFSendFile(pOutFD, pInFD, &offset, speed / 10)) < 0) { if ((nBytes = taosFSendFile(pOutFD, pInFD, &offset, speed)) < 0) {
return nBytes; return nBytes;
} }
cost = taosGetTimestampMs() - startMs; cost = taosGetTimestampMs() - startMs;