Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Fixed wrong pktSndDrop stats value. #2811

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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::BytesPacketsCount((uint64_t) dbytes, (uint32_t) dpkts));
leaveCS(m_StatsLock);

IF_HEAVY_LOGGING(const int32_t realack = m_iSndLastDataAck);
Expand Down