chore: send file with specified speed
This commit is contained in:
parent
43c954b6e7
commit
024f6a2149
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue