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 m_ullTraceRcvBytesLoss clearing #575

Merged
merged 1 commit into from
Feb 15, 2019
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
9 changes: 9 additions & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ void CUDT::clearData()
m_ullTraceBytesSent = 0;
m_ullTraceBytesRecv = 0;
m_ullTraceBytesRetrans = 0;
#ifdef SRT_ENABLE_LOSTBYTESCOUNT
m_ullTraceRcvBytesLoss = 0;
#endif
m_ullSndBytesDropTotal = 0;
m_ullRcvBytesDropTotal = 0;
m_ullTraceSndBytesDrop = 0;
Expand Down Expand Up @@ -5842,6 +5845,9 @@ void CUDT::sample(CPerfMon* perf, bool clear)
m_llSndDuration = 0;
m_iTraceRcvRetrans = 0;
m_iTraceRcvBelated = 0;
#ifdef SRT_ENABLE_LOSTBYTESCOUNT
m_ullTraceRcvBytesLoss = 0;
#endif
m_LastSampleTime = currtime;
}
}
Expand Down Expand Up @@ -6037,6 +6043,9 @@ void CUDT::bstats(CBytePerfMon* perf, bool clear, bool instantaneous)
m_llSndDuration = 0;
m_iTraceRcvRetrans = 0;
m_iTraceRcvBelated = 0;
#ifdef SRT_ENABLE_LOSTBYTESCOUNT
m_ullTraceRcvBytesLoss = 0;
#endif
m_LastSampleTime = currtime;
}
}
Expand Down