[PCLF] Fix rounding issue in network stats
Bug: b/246095034 Change-Id: I55c874507ae6b51bc196846273fe0dcfa14a3eb9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277180 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38233}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
bb591c49e8
commit
99f5d95dc6
@ -278,7 +278,7 @@ void StatsBasedNetworkQualityMetricsReporter::ReportStats(
|
|||||||
Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
|
Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
|
||||||
metrics_logger_->LogSingleValueMetric(
|
metrics_logger_->LogSingleValueMetric(
|
||||||
"average_send_rate", GetTestCaseName(pc_label),
|
"average_send_rate", GetTestCaseName(pc_label),
|
||||||
(pc_stats.total_sent / (end_time - start_time_)).kbps(),
|
(pc_stats.total_sent / (end_time - start_time_)).kbps<double>(),
|
||||||
Unit::kKilobitsPerSecond, ImprovementDirection::kNeitherIsBetter);
|
Unit::kKilobitsPerSecond, ImprovementDirection::kNeitherIsBetter);
|
||||||
metrics_logger_->LogSingleValueMetric(
|
metrics_logger_->LogSingleValueMetric(
|
||||||
"bytes_received", GetTestCaseName(pc_label),
|
"bytes_received", GetTestCaseName(pc_label),
|
||||||
@ -289,7 +289,7 @@ void StatsBasedNetworkQualityMetricsReporter::ReportStats(
|
|||||||
Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
|
Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
|
||||||
metrics_logger_->LogSingleValueMetric(
|
metrics_logger_->LogSingleValueMetric(
|
||||||
"average_receive_rate", GetTestCaseName(pc_label),
|
"average_receive_rate", GetTestCaseName(pc_label),
|
||||||
(pc_stats.total_received / (end_time - start_time_)).kbps(),
|
(pc_stats.total_received / (end_time - start_time_)).kbps<double>(),
|
||||||
Unit::kKilobitsPerSecond, ImprovementDirection::kNeitherIsBetter);
|
Unit::kKilobitsPerSecond, ImprovementDirection::kNeitherIsBetter);
|
||||||
metrics_logger_->LogSingleValueMetric(
|
metrics_logger_->LogSingleValueMetric(
|
||||||
"sent_packets_loss", GetTestCaseName(pc_label), packet_loss,
|
"sent_packets_loss", GetTestCaseName(pc_label), packet_loss,
|
||||||
|
|||||||
Reference in New Issue
Block a user