From 80ea6ed3d7c3edfd2805c6661763833558b26d80 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Thu, 25 Jul 2019 11:03:59 +0200 Subject: [PATCH] [core] Fixed HS response timestamp --- srtcore/core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/srtcore/core.cpp b/srtcore/core.cpp index ca8f097ef..f1161b78e 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -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) {