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:
drbob 2012-06-22 01:35:32 +00:00
parent 9fcc9277c2
commit e0af833f47
8 changed files with 56 additions and 2 deletions

View file

@ -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;