mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 19:38:57 -04:00
Added QueueSize information to be exported too.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5245 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9fcc9277c2
commit
e0af833f47
8 changed files with 56 additions and 2 deletions
|
@ -742,6 +742,8 @@ int pqihandler::ExtractRates(std::map<std::string, RsBwRates> &ratemap, RsBw
|
|||
total.mMaxRateOut = getMaxRate(false);
|
||||
total.mRateIn = 0;
|
||||
total.mRateOut = 0;
|
||||
total.mQueueIn = 0;
|
||||
total.mQueueOut = 0;
|
||||
|
||||
/* Lock once rates have been retrieved */
|
||||
RsStackMutex stack(coreMtx); /**************** LOCKED MUTEX ****************/
|
||||
|
@ -756,6 +758,8 @@ int pqihandler::ExtractRates(std::map<std::string, RsBwRates> &ratemap, RsBw
|
|||
|
||||
total.mRateIn += peerRates.mRateIn;
|
||||
total.mRateOut += peerRates.mRateOut;
|
||||
total.mQueueIn += peerRates.mQueueIn;
|
||||
total.mQueueOut += peerRates.mQueueOut;
|
||||
|
||||
ratemap[it->first] = peerRates;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue