fixed bug in loading config file to set max rates

This commit is contained in:
csoler 2016-06-08 22:54:40 -04:00
parent 5a0fa66ac0
commit 6b78275677

View file

@ -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)
{ {