mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05: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;
|
std::map<RsPeerId, SearchModule *>::iterator it;
|
||||||
|
|
||||||
int num_sm = mods.size();
|
|
||||||
|
|
||||||
float avail_in = getMaxRate(true);
|
float avail_in = getMaxRate(true);
|
||||||
float avail_out = getMaxRate(false);
|
float avail_out = getMaxRate(false);
|
||||||
|
|
||||||
float used_bw_in = 0;
|
float used_bw_in = 0;
|
||||||
float used_bw_out = 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 */
|
/* Lock once rates have been retrieved */
|
||||||
RsStackMutex stack(coreMtx); /**************** LOCKED MUTEX ****************/
|
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 effectiveUploadsSm = 0;
|
||||||
int effectiveDownloadsSm = 0;
|
int effectiveDownloadsSm = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user