Skip to content

Commit

Permalink
[core] Fixed wrong pktSndDrop stats value.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Oct 18, 2023
1 parent eb80f92 commit a2e9414
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 @@ -6386,7 +6386,7 @@ int srt::CUDT::receiveBuffer(char *data, int len)
throw CUDTException(MJ_AGAIN, MN_RDAVAIL, 0);
}

// Kick TsbPd thread to schedule next wakeup (if running)
// Kick TsbPd thread to schedule the next wakeup (if running)
if (m_config.iRcvTimeOut < 0)
{
THREAD_PAUSED();
Expand Down Expand Up @@ -6497,7 +6497,7 @@ int srt::CUDT::sndDropTooLate()

// If some packets were dropped update stats, socket state, loss list and the parent group if any.
enterCS(m_StatsLock);
m_stats.sndr.dropped.count(dbytes);;
m_stats.sndr.dropped.count(stats::BytesPackets(dbytes, (uint32_t)dpkts));
leaveCS(m_StatsLock);

IF_HEAVY_LOGGING(const int32_t realack = m_iSndLastDataAck);
Expand Down

0 comments on commit a2e9414

Please sign in to comment.