mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
various changes to measure RTTs more accurately
This commit is contained in:
parent
87764abe4c
commit
a4430647de
3 changed files with 29 additions and 46 deletions
|
@ -47,6 +47,7 @@ int rsserverzone = 101;
|
|||
/****
|
||||
#define DEBUG_TICK 1
|
||||
****/
|
||||
#define DEBUG_TICK 1
|
||||
|
||||
#define WARN_BIG_CYCLE_TIME (0.2)
|
||||
#ifdef WINDOWS_SYS
|
||||
|
@ -69,8 +70,8 @@ static double getCurrentTS()
|
|||
return cts;
|
||||
}
|
||||
|
||||
const double RsServer::minTimeDelta = 0.1; // 25;
|
||||
const double RsServer::maxTimeDelta = 0.5;
|
||||
const double RsServer::minTimeDelta = 0.05; // 25;
|
||||
const double RsServer::maxTimeDelta = 0.1;
|
||||
const double RsServer::kickLimit = 0.15;
|
||||
|
||||
|
||||
|
@ -138,6 +139,8 @@ void RsServer::data_tick()
|
|||
|
||||
double ts = getCurrentTS();
|
||||
double delta = ts - mLastts;
|
||||
|
||||
std::cerr << "[data tick] delta = " << delta << std::endl;
|
||||
|
||||
/* for the fast ticked stuff */
|
||||
if (delta > mTimeDelta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue