mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -04:00
Fixed default data rates to sensible options: 200 kB/s down, 50 kB/s up.
Added StoreAllKeys() call after adding new GPG Certificate. Added Check for successful Req creation (was crashing with NULL pointer). Switched std::vector.data => &(std::vector[0]) to remove linuxism in radix64. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4851 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e6816c9d6f
commit
00ff694e10
4 changed files with 44 additions and 30 deletions
|
@ -46,6 +46,9 @@ static std::list<std::string> waitingIds;
|
|||
****/
|
||||
//#define PGRP_DEBUG 1
|
||||
|
||||
#define DEFAULT_DOWNLOAD_KB_RATE (200.0)
|
||||
#define DEFAULT_UPLOAD_KB_RATE (50.0)
|
||||
|
||||
/* MUTEX NOTES:
|
||||
* Functions like GetRsRawItem() lock itself (pqihandler) and
|
||||
* likewise ServiceServer and ConfigMgr mutex themselves.
|
||||
|
@ -265,8 +268,9 @@ int pqipersongrp::load_config()
|
|||
pqioutput(PQL_DEBUG_BASIC, pqipersongrpzone,
|
||||
"pqipersongrp::load_config() Loading Default Rates!");
|
||||
|
||||
setMaxRate(true, 500.0);
|
||||
setMaxRate(false, 500.0);
|
||||
|
||||
setMaxRate(true, DEFAULT_DOWNLOAD_KB_RATE);
|
||||
setMaxRate(false, DEFAULT_UPLOAD_KB_RATE);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue