[fix] fix sent packet size in congestion control feedbacks

This commit is contained in:
dijunkun
2025-02-10 16:06:19 +08:00
parent 2c48ce12c5
commit 0595112d4f
5 changed files with 3 additions and 12 deletions

View File

@@ -133,19 +133,9 @@ NetworkControlUpdate CongestionControl::OnTransportPacketsFeedback(
}
previously_in_alr_ = alr_start_time.has_value();
int count = 0;
for (auto r : report.SortedByReceiveTime()) {
count++;
LOG_WARN("{} packet.sent_packet.size: {}", count,
ToString(r.sent_packet.size));
}
acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(
report.SortedByReceiveTime());
auto acknowledged_bitrate = acknowledged_bitrate_estimator_->bitrate();
LOG_WARN("acknowledged_bitrate:{}", acknowledged_bitrate->kbps());
// TODO: fix acknowledged_bitrate
// acknowledged_bitrate = DataRate::KilobitsPerSec(1000);
bandwidth_estimation_->SetAcknowledgedRate(acknowledged_bitrate,
report.feedback_time);
for (const auto& feedback : report.SortedByReceiveTime()) {