commit | 328c514757da2b494e8ff6f6630eaf17c50c6882 | [log] [tgz] |
---|---|---|
author | Danil Chapovalov <danilchap@webrtc.org> | Fri May 19 09:45:46 2023 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 19 10:38:37 2023 |
tree | df1b4a0c8f3175eb03759df6c22427cb8fec27c5 | |
parent | ff75eae06475fc586bbe379bbb3c91896fe47bb9 [diff] |
Reduce precision of RTT in RtrpTransportControllerSend To match precision prio to https://webrtc-review.googlesource.com/c/src/+/305022 No-Try: true Bug: webrtc:13757 Change-Id: Ia0bdcedffed946f7d94d21fc242e22689167a395 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/305780 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40090}
diff --git a/call/rtp_transport_controller_send.cc b/call/rtp_transport_controller_send.cc index f2d6cd0..dc1d371 100644 --- a/call/rtp_transport_controller_send.cc +++ b/call/rtp_transport_controller_send.cc
@@ -523,7 +523,7 @@ RTC_DCHECK_RUN_ON(&sequence_checker_); RoundTripTimeUpdate report; report.receive_time = receive_time; - report.round_trip_time = rtt; + report.round_trip_time = rtt.RoundTo(TimeDelta::Millis(1)); report.smoothed = false; if (controller_ && !report.round_trip_time.IsZero()) PostUpdates(controller_->OnRoundTripTimeUpdate(report));