mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-13 08:35:45 -04:00
merged upstream/master
This commit is contained in:
commit
9ce4b13e50
2 changed files with 11 additions and 9 deletions
|
@ -739,7 +739,7 @@ bool ftTransferModule::locked_tickPeerTransfer(peerInfo &info)
|
|||
#endif
|
||||
/* update rate */
|
||||
|
||||
if(info.lastTransfers > 0 || ageReq > 2)
|
||||
if( (info.lastTransfers > 0 && ageReq > 0) || ageReq > 2)
|
||||
{
|
||||
info.actualRate = info.actualRate * 0.75 + 0.25 * info.lastTransfers / (float)ageReq;
|
||||
info.lastTransfers = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue