Skip to content

Commit

Permalink
[core] Fixed wrong pktSndDrop stats value (#2811).
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 29, 2024
1 parent 09f35c0 commit 2da27f5
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 @@ -6304,7 +6304,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 @@ -6415,7 +6415,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((uint64_t)dbytes, (uint32_t)dpkts));
leaveCS(m_StatsLock);

IF_HEAVY_LOGGING(const int32_t realack = m_iSndLastDataAck);
Expand Down

0 comments on commit 2da27f5

Please sign in to comment.