mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Add in storage of the current Data Rate to pqihandler.cc.
Add in interface for the Data Rates. Increase DHT Bootstrap buckets to 8. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@590 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
20aa2a031b
commit
e42ce13454
6 changed files with 56 additions and 13 deletions
|
@ -78,6 +78,9 @@ float getMaxIndivRate(bool in);
|
|||
void setMaxRate(bool in, float val);
|
||||
float getMaxRate(bool in);
|
||||
|
||||
void getCurrentRates(float &in, float &out);
|
||||
|
||||
|
||||
protected:
|
||||
/* check to be overloaded by those that can
|
||||
* generates warnings otherwise
|
||||
|
@ -100,12 +103,15 @@ void SortnStoreItem(RsItem *item);
|
|||
|
||||
// rate control.
|
||||
int UpdateRates();
|
||||
void StoreCurrentRates(float in, float out);
|
||||
|
||||
float rateIndiv_in;
|
||||
float rateIndiv_out;
|
||||
float rateMax_in;
|
||||
float rateMax_out;
|
||||
|
||||
float rateTotal_in;
|
||||
float rateTotal_out;
|
||||
};
|
||||
|
||||
inline void pqihandler::setMaxIndivRate(bool in, float val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue