double delay

This commit is contained in:
Jeff Tao 2020-07-28 08:43:27 +00:00
parent be58861a59
commit 2a3c831e3f
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ void *syncRetrieveData(void *param)
// if file is changed 3 times continuously, start flow control
pPeer->numOfRetrieves++;
if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl)
(*pNode->notifyFlowCtrl)(pNode->ahandle, pPeer->numOfRetrieves - 2);
(*pNode->notifyFlowCtrl)(pNode->ahandle, 1 << (pPeer->numOfRetrieves - 3));
} else {
pPeer->numOfRetrieves = 0;
if (pNode->notifyFlowCtrl)