Skip to content

Commit

Permalink
[core] Fixed checkTimers interval (100ms -> 10 ms)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored and rndi committed Oct 28, 2019
1 parent 3d5ffe2 commit 3a5ead0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,8 @@ void *CRcvQueue::worker(void *param)
uint64_t currtime_tk;
CTimer::rdtsc(currtime_tk);

CRNode * ul = self->m_pRcvUList->m_pUList;
uint64_t ctime_tk = currtime_tk - 100000 * CTimer::getCPUFrequency();
CRNode * ul = self->m_pRcvUList->m_pUList;
const uint64_t ctime_tk = currtime_tk - CUDT::COMM_SYN_INTERVAL_US * CTimer::getCPUFrequency();
while ((NULL != ul) && (ul->m_llTimeStamp_tk < ctime_tk))
{
CUDT *u = ul->m_pUDT;
Expand Down

0 comments on commit 3a5ead0

Please sign in to comment.