mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 10:32:22 -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
|
@ -225,6 +225,9 @@ int p3BandwidthControl::getTotalBandwidthRates(RsConfigDataRates &rates)
|
|||
rates.mAllowedOut = 0;
|
||||
rates.mAllowedTs = 0;
|
||||
|
||||
rates.mQueueIn = mTotalRates.mQueueIn;
|
||||
rates.mQueueOut = mTotalRates.mQueueOut;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -248,6 +251,9 @@ int p3BandwidthControl::getAllBandwidthRates(std::map<std::string, RsConfigDataR
|
|||
rates.mAllowedOut = bit->second.mAllowedOut / 1000.0;
|
||||
rates.mAllowedTs = bit->second.mLastRecvd;
|
||||
|
||||
rates.mQueueIn = bit->second.mRates.mQueueIn;
|
||||
rates.mQueueOut = bit->second.mRates.mQueueOut;
|
||||
|
||||
ratemap[bit->first] = rates;
|
||||
}
|
||||
return true ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue