Index: webrtc/video_engine/vie_receiver.cc |
diff --git a/webrtc/video_engine/vie_receiver.cc b/webrtc/video_engine/vie_receiver.cc |
index dcdacd68ff31484c48008f4abc7674494c3b3add..9d1a833de78c12b88e8e8245bc8a10a7a8670f8f 100644 |
--- a/webrtc/video_engine/vie_receiver.cc |
+++ b/webrtc/video_engine/vie_receiver.cc |
@@ -69,13 +69,14 @@ ViEReceiver::~ViEReceiver() { |
void ViEReceiver::UpdateHistograms() { |
FecPacketCounter counter = fec_receiver_->GetPacketCounter(); |
if (counter.num_packets > 0) { |
- RTC_HISTOGRAM_PERCENTAGE("WebRTC.Video.ReceivedFecPacketsInPercent", |
- counter.num_fec_packets * 100 / counter.num_packets); |
+ RTC_HISTOGRAM_PERCENTAGE( |
+ "WebRTC.Video.ReceivedFecPacketsInPercent", |
+ static_cast<int>(counter.num_fec_packets * 100 / counter.num_packets)); |
} |
if (counter.num_fec_packets > 0) { |
- RTC_HISTOGRAM_PERCENTAGE( |
- "WebRTC.Video.RecoveredMediaPacketsInPercentOfFec", |
- counter.num_recovered_packets * 100 / counter.num_fec_packets); |
+ RTC_HISTOGRAM_PERCENTAGE("WebRTC.Video.RecoveredMediaPacketsInPercentOfFec", |
+ static_cast<int>(counter.num_recovered_packets * |
+ 100 / counter.num_fec_packets)); |
} |
} |