Skip to content

Commit

Permalink
[core] Fixed HS response timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored and rndi committed Jul 26, 2019
1 parent 9773b1c commit 80ea6ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7241,9 +7241,7 @@ void CUDT::processCtrl(CPacket& ctrlpkt)
if ( createSrtHandshake(Ref(response), Ref(initdata), SRT_CMD_HSRSP, SRT_CMD_KMRSP, kmdata, kmdatasize) )
{
response.m_iID = m_PeerID;
uint64_t currtime_tk;
CTimer::rdtsc(currtime_tk);
response.m_iTimeStamp = int(currtime_tk/m_ullCPUFrequency - m_stats.startTime);
response.m_iTimeStamp = int(CTimer::getTime() - m_stats.startTime);
int nbsent = m_pSndQueue->sendto(m_pPeerAddr, response);
if (nbsent)
{
Expand Down

0 comments on commit 80ea6ed

Please sign in to comment.