mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 12:24:24 -04:00
fixed bug in loading config file to set max rates
This commit is contained in:
parent
5a0fa66ac0
commit
6b78275677
1 changed files with 219 additions and 218 deletions
|
@ -2087,6 +2087,7 @@ bool p3PeerMgrIMPL::getMaxRates(const RsPeerId& pid,uint32_t& maxUp,uint32_t& ma
|
||||||
|
|
||||||
maxUp = it->second.maxUpRate ;
|
maxUp = it->second.maxUpRate ;
|
||||||
maxDn = it->second.maxDnRate ;
|
maxDn = it->second.maxDnRate ;
|
||||||
|
|
||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
bool p3PeerMgrIMPL::setMaxRates(const RsPeerId& pid,uint32_t maxUp,uint32_t maxDn)
|
bool p3PeerMgrIMPL::setMaxRates(const RsPeerId& pid,uint32_t maxUp,uint32_t maxDn)
|
||||||
|
@ -2185,8 +2186,8 @@ bool p3PeerMgrIMPL::loadList(std::list<RsItem *>& load)
|
||||||
setLocation(pitem->peerId, pitem->location);
|
setLocation(pitem->peerId, pitem->location);
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning needs to talk to pqihandler from here
|
// this is the external interface, but the
|
||||||
//setMaxRates(pitem->peerId,pitem->maxUploadRate,pitem->maxDownloadRate) ;
|
setMaxRates(pitem->peerId,pitem->maxUploadRate,pitem->maxDownloadRate) ;
|
||||||
|
|
||||||
if (pitem->netMode == RS_NET_MODE_HIDDEN)
|
if (pitem->netMode == RS_NET_MODE_HIDDEN)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue