Skip to content

Commit

Permalink
[core] Fix rtt estimate in bidirectional mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhihong authored and maxsharabayko committed Dec 9, 2021
1 parent e0aaa44 commit ae787bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8457,8 +8457,8 @@ void srt::CUDT::processCtrlAck(const CPacket &ctrlpkt, const steady_clock::time_

if (crtt != INITIAL_RTT && rttvar != INITIAL_RTTVAR)
{
crttvar = avg_iir<4>(crttvar, abs(crtt - crtt));
crtt = avg_iir<8>(crtt, crtt);
crttvar = avg_iir<4>(crttvar, abs(crtt - rtt));
crtt = avg_iir<8>(crtt, rtt);
}
m_iSRTT = crtt;
m_iRTTVar = crttvar;
Expand Down

0 comments on commit ae787bf

Please sign in to comment.