* Switched off lots of debugging.

* Tweaks to the transfer rates.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-11-18 21:22:58 +00:00
parent 8d3bda4f76
commit c60cf84e95
10 changed files with 44 additions and 17 deletions

View File

@ -39,7 +39,6 @@
/***********
* #define FIM_DEBUG 1
***********/
#define FIM_DEBUG 1
FileIndexMonitor::FileIndexMonitor(CacheStrapper *cs, std::string cachedir, std::string pid)
:CacheSource(RS_SERVICE_TYPE_FILE_INDEX, false, cs, cachedir), fi(pid),

View File

@ -44,8 +44,6 @@ const double DMULTIPLEX_RELAX = 0.5; /* ??? */
* #define MPLEX_DEBUG 1
*****/
#define MPLEX_DEBUG 1
ftClient::ftClient(ftTransferModule *module, ftFileCreator *creator)
:mModule(module), mCreator(creator)
{

View File

@ -27,7 +27,9 @@
#include "serialiser/rsconfigitems.h"
#include "util/rsdir.h"
#define DEBUG_ELIST 1
/******
* #define DEBUG_ELIST 1
*****/
ftExtraList::ftExtraList()
:p3Config(CONFIG_TYPE_FT_EXTRA_LIST)

View File

@ -5,8 +5,6 @@
* #define FILE_DEBUG 1
******/
#define FILE_DEBUG 1
#define CHUNK_MAX_AGE 20

View File

@ -49,8 +49,6 @@ const int ftserverzone = 29539;
* #define SERVER_DEBUG 1
***/
#define SERVER_DEBUG 1
/* Setup */
ftServer::ftServer(p3AuthMgr *authMgr, p3ConnectMgr *connMgr)
:mAuthMgr(authMgr), mConnMgr(connMgr)

View File

@ -50,6 +50,10 @@
const double FT_TM_MAX_PEER_RATE = 1024 * 1024; /* 1MB/s */
const uint32_t FT_TM_MAX_RESETS = 5;
const uint32_t FT_TM_MINIMUM_CHUNK = 1024; /* ie 1Kb / sec */
const uint32_t FT_TM_RESTART_DOWNLOAD = 20; /* 20 seconds */
const uint32_t FT_TM_DOWNLOAD_TIMEOUT = 18; /* 18 seconds */
ftTransferModule::ftTransferModule(ftFileCreator *fc, ftDataMultiplex *dm, ftController *c)
:mFileCreator(fc), mMultiplexor(dm), mFtController(c), mFlag(0)
{
@ -500,9 +504,6 @@ void ftTransferModule::adjustSpeed()
*
**/
const uint32_t FT_TM_MINIMUM_CHUNK = 1024; /* ie 1Kb / sec */
const uint32_t FT_TM_RESTART_DOWNLOAD = 10; /* 10 seconds */
const uint32_t FT_TM_DOWNLOAD_TIMEOUT = 5; /* 5 seconds */
/* NOTEs on this function...
* 1) This is the critical function for deciding the rate at which ft takes place.
@ -574,7 +575,7 @@ bool ftTransferModule::locked_tickPeerTransfer(peerInfo &info)
info.lastTransfers = 0;
/* request at 10% more than actual rate */
uint32_t next_req = info.actualRate * 1.1;
uint32_t next_req = info.actualRate * 1.25;
if (next_req > info.desiredRate * 1.1)
next_req = info.desiredRate * 1.1;

View File

@ -35,8 +35,6 @@
* #define CONFIG_DEBUG 1
***/
#define CONFIG_DEBUG 1
p3ConfigMgr::p3ConfigMgr(p3AuthMgr *am, std::string dir, std::string fname, std::string signame)
:mAuthMgr(am), basedir(dir), metafname(fname), metasigfname(signame),
mConfigSaveActive(true)

View File

@ -48,8 +48,6 @@ const int p3dhtzone = 3892;
*
*/
#define DHT_DEBUG 1
/**** DHT State Variables ****/
#define DHT_STATE_OFF 0

View File

@ -27,7 +27,7 @@ ifndef MAC_I386_BUILD
endif
# flags for components....
#PQI_USE_XPGP = 1
PQI_USE_XPGP = 1
#PQI_USE_PROXY = 1
#PQI_USE_CHANNELS = 1
#USE_FILELOOK = 1

View File

@ -0,0 +1,35 @@
#
## clean up all bits of libretroshare
echo make clobber
make clobber
#
## make the standard version (PPC)
echo make
make
#
LIB=libretroshare.a
LIB_PPC=libretroshare_ppc.a
LIB_X86=libretroshare_x86.a
MAC_SCRIPT="./scripts/config-macosx.mk"
echo cp lib/$LIB lib/$LIB_PPC
cp lib/$LIB lib/$LIB_PPC
echo make clobber
make clobber
echo make "MAC_I386_BUILD=1"
make "MAC_I386_BUILD=1"
echo cp lib/$LIB lib/$LIB_X86
cp lib/$LIB lib/$LIB_X86
# magic combine trick.
echo cd lib
cd lib
echo lipo -create libretroshare_*.a -output $LIB
lipo -create libretroshare_*.a -output $LIB