Index: webrtc/base/opensslstreamadapter.cc |
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc |
index d2f3bc49781d7d9aa8646df6d0956465b6a92a85..5a7560e112584995044b2c22a2804ed04ec752b5 100644 |
--- a/webrtc/base/opensslstreamadapter.cc |
+++ b/webrtc/base/opensslstreamadapter.cc |
@@ -66,7 +66,7 @@ static SrtpCipherMapEntry SrtpCipherMap[] = { |
static void TimeCallback(const SSL* ssl, struct timeval* out_clock) { |
uint64_t time = TimeNanos(); |
out_clock->tv_sec = time / kNumNanosecsPerSec; |
- out_clock->tv_usec = time / kNumNanosecsPerMicrosec; |
+ out_clock->tv_usec = (time % kNumNanosecsPerSec) / kNumNanosecsPerMicrosec; |
} |
#else // #ifdef OPENSSL_IS_BORINGSSL |