| Index: net/quic/congestion_control/rtt_stats.cc
|
| diff --git a/net/quic/congestion_control/rtt_stats.cc b/net/quic/congestion_control/rtt_stats.cc
|
| index b03686d747e6621102e0dd7e11d125fdf261e528..2eb0b8d5510cd71f26745429fe02ff832c0595a1 100644
|
| --- a/net/quic/congestion_control/rtt_stats.cc
|
| +++ b/net/quic/congestion_control/rtt_stats.cc
|
| @@ -68,7 +68,7 @@ void RttStats::UpdateRtt(QuicTime::Delta send_delta,
|
| << (rtt_sample.IsZero() ? "Zero" : "Infinite");
|
| return;
|
| }
|
| - // RTT can't be negative.
|
| + // RTT can't be non-positive.
|
| DCHECK_LT(0, rtt_sample.ToMicroseconds());
|
|
|
| latest_rtt_ = rtt_sample;
|
| @@ -138,4 +138,11 @@ QuicTime::Delta RttStats::SmoothedRtt() const {
|
| return smoothed_rtt_;
|
| }
|
|
|
| +QuicTime::Delta RttStats::MinRtt() const {
|
| + if (!HasUpdates()) {
|
| + return QuicTime::Delta::FromMicroseconds(initial_rtt_us_);
|
| + }
|
| + return min_rtt_;
|
| +}
|
| +
|
| } // namespace net
|
|
|