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

Unified Diff: content/browser/renderer_host/p2p/socket_host_throttler.cc

Issue 2398603004: Fixing issue that causes STUN throttle rate to be off by a factor of 1000. (Closed)
Patch Set: Disabling new test on component builds. Created 4 years, 2 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 | « no previous file | content/browser/renderer_host/p2p/socket_host_udp_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p/socket_host_throttler.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_throttler.cc b/content/browser/renderer_host/p2p/socket_host_throttler.cc
index 57437d148db785431e499a72aad6c5a07c2eb871..90c4208834cb798796be1e073d9cd62aed7b4c4f 100644
--- a/content/browser/renderer_host/p2p/socket_host_throttler.cc
+++ b/content/browser/renderer_host/p2p/socket_host_throttler.cc
@@ -31,7 +31,7 @@ void P2PMessageThrottler::SetSendIceBandwidth(int bandwidth_kbps) {
bool P2PMessageThrottler::DropNextPacket(size_t packet_len) {
double now =
- rtc::TimeMicros() / static_cast<double>(rtc::kNumMicrosecsPerMillisec);
+ rtc::TimeNanos() / static_cast<double>(rtc::kNumNanosecsPerSec);
if (!rate_limiter_->CanUse(packet_len, now)) {
// Exceeding the send rate, this packet should be dropped.
return true;
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host_udp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698