Skip to content

Commit

Permalink
[core] Fixed sndDuration time source
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored and rndi committed Apr 1, 2019
1 parent 6eaa7cb commit 6ac5f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6740,7 +6740,7 @@ void CUDT::processCtrl(CPacket& ctrlpkt)
// acknowledge the sending buffer (remove data that predate 'ack')
m_pSndBuffer->ackData(offset);

int64_t currtime = currtime_tk/m_ullCPUFrequency;
const int64_t currtime = CTimer::getTime();
// record total time used for sending
CGuard::enterCS(m_StatsLock);
m_stats.sndDuration += currtime - m_stats.sndDurationCounter;
Expand Down

0 comments on commit 6ac5f0e

Please sign in to comment.