Use TimeDelta to convert to to/from compact ntp time
Bug: webrtc:13757 Change-Id: I1c5f0a666da8e6b30291763d110ff049df573490 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256103 Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36333}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
1d6de1499c
commit
7ab3ecd4c2
@ -152,7 +152,7 @@ void LogBasedNetworkControllerSimulation::OnReceiverReport(
|
||||
CompactNtp(clock->ConvertTimestampToNtpTime(report_log_time));
|
||||
uint32_t rtt_ntp =
|
||||
receive_time_ntp - rb.delay_since_last_sr() - rb.last_sr();
|
||||
rtt = std::min(rtt, TimeDelta::Millis(CompactNtpRttToMs(rtt_ntp)));
|
||||
rtt = std::min(rtt, CompactNtpRttToTimeDelta(rtt_ntp));
|
||||
}
|
||||
}
|
||||
if (rtt.IsFinite()) {
|
||||
|
||||
Reference in New Issue
Block a user