提交 2a3c831e 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

double delay

上级 be58861a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册