Unverified 提交 a13ec828 authored 作者: Liu's avatar Liu 提交者: GitHub

Fix: modify comments about packet loss rate calculation (#1362)

Co-authored-by: 's avatarliuzhen890106@163.com <liuzhen@liuzhendeMacBook-Air.local>
上级 f6e3fa47
...@@ -241,7 +241,7 @@ namespace RTC ...@@ -241,7 +241,7 @@ namespace RTC
void TransportCongestionControlClient::UpdatePacketLoss(double packetLoss) void TransportCongestionControlClient::UpdatePacketLoss(double packetLoss)
{ {
// Add the score into the histogram. // Add the lost into the histogram.
if (this->packetLossHistory.size() == PacketLossHistogramLength) if (this->packetLossHistory.size() == PacketLossHistogramLength)
{ {
this->packetLossHistory.pop_front(); this->packetLossHistory.pop_front();
......
...@@ -397,7 +397,7 @@ namespace RTC ...@@ -397,7 +397,7 @@ namespace RTC
void TransportCongestionControlServer::UpdatePacketLoss(double packetLoss) void TransportCongestionControlServer::UpdatePacketLoss(double packetLoss)
{ {
// Add the score into the histogram. // Add the lost into the histogram.
if (this->packetLossHistory.size() == PacketLossHistogramLength) if (this->packetLossHistory.size() == PacketLossHistogramLength)
{ {
this->packetLossHistory.pop_front(); this->packetLossHistory.pop_front();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论