Index: webrtc/p2p/base/p2ptransportchannel.cc |
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc |
index acbcfd77e7165281e43588b4f7ce21dc2bf1f025..9822eb4c495139f77e795088db717f12bcbc9d7a 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel.cc |
+++ b/webrtc/p2p/base/p2ptransportchannel.cc |
@@ -1039,7 +1039,7 @@ rtc::DiffServCodePoint P2PTransportChannel::DefaultDscpValue() const { |
// Monitor connection states. |
void P2PTransportChannel::UpdateConnectionStates() { |
- int64_t now = rtc::Time64(); |
+ int64_t now = rtc::TimeMillis(); |
// We need to copy the list of connections since some may delete themselves |
// when we call UpdateState. |
@@ -1284,7 +1284,7 @@ void P2PTransportChannel::OnCheckAndPing() { |
// When the best connection is either not receiving or not writable, |
// switch to weak ping interval. |
int ping_interval = weak() ? weak_ping_interval_ : STRONG_PING_INTERVAL; |
- if (rtc::Time64() >= last_ping_sent_ms_ + ping_interval) { |
+ if (rtc::TimeMillis() >= last_ping_sent_ms_ + ping_interval) { |
Connection* conn = FindNextPingableConnection(); |
if (conn) { |
PingConnection(conn); |
@@ -1343,7 +1343,7 @@ bool P2PTransportChannel::IsPingable(Connection* conn, int64_t now) { |
// ping target to become writable instead. See the big comment in |
// CompareConnections. |
Connection* P2PTransportChannel::FindNextPingableConnection() { |
- int64_t now = rtc::Time64(); |
+ int64_t now = rtc::TimeMillis(); |
Connection* conn_to_ping = nullptr; |
if (best_connection_ && best_connection_->connected() && |
best_connection_->writable() && |
@@ -1384,7 +1384,7 @@ void P2PTransportChannel::PingConnection(Connection* conn) { |
use_candidate = best_connection_->writable(); |
} |
conn->set_use_candidate_attr(use_candidate); |
- last_ping_sent_ms_ = rtc::Time64(); |
+ last_ping_sent_ms_ = rtc::TimeMillis(); |
conn->Ping(last_ping_sent_ms_); |
} |