mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
merged PR 219 from Jolavilette+Phenom, with some minor modifications
This commit is contained in:
parent
2fe646c5cb
commit
682930938b
@ -477,19 +477,19 @@ int pqihandler::UpdateRates()
|
||||
|
||||
std::map<RsPeerId, SearchModule *>::iterator it;
|
||||
|
||||
int num_sm = mods.size();
|
||||
|
||||
float avail_in = getMaxRate(true);
|
||||
float avail_out = getMaxRate(false);
|
||||
|
||||
float used_bw_in = 0;
|
||||
float used_bw_out = 0;
|
||||
float used_bw_in_table[num_sm]; /* table of in bandwidth currently used by each module */
|
||||
float used_bw_out_table[num_sm]; /* table of out bandwidth currently used by each module */
|
||||
|
||||
/* Lock once rates have been retrieved */
|
||||
RsStackMutex stack(coreMtx); /**************** LOCKED MUTEX ****************/
|
||||
|
||||
int num_sm = mods.size();
|
||||
float used_bw_in_table[num_sm]; /* table of in bandwidth currently used by each module */
|
||||
float used_bw_out_table[num_sm]; /* table of out bandwidth currently used by each module */
|
||||
|
||||
int effectiveUploadsSm = 0;
|
||||
int effectiveDownloadsSm = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user