Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: net/quic/quic_server_session_base.cc

Issue 2125303002: Use overloaded operators with QuicTime for addition, subtraction and scalar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@126402784
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_server_session_base_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_server_session_base.cc
diff --git a/net/quic/quic_server_session_base.cc b/net/quic/quic_server_session_base.cc
index 63a4602680cefa749330bfda6979ac162dafd088..44bee9903c223bc844eccf053ae593ec98480adb 100644
--- a/net/quic/quic_server_session_base.cc
+++ b/net/quic/quic_server_session_base.cc
@@ -116,7 +116,7 @@ void QuicServerSessionBase::OnCongestionWindowChange(QuicTime now) {
connection()->sent_packet_manager();
int64_t srtt_ms =
sent_packet_manager.GetRttStats()->smoothed_rtt().ToMilliseconds();
- int64_t now_ms = now.Subtract(last_scup_time_).ToMilliseconds();
+ int64_t now_ms = (now - last_scup_time_).ToMilliseconds();
int64_t packets_since_last_scup =
connection()->packet_number_of_last_sent_packet() -
last_scup_packet_number_;
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_server_session_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698