[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}
diff --git a/test/pc/e2e/stats_based_network_quality_metrics_reporter.cc b/test/pc/e2e/stats_based_network_quality_metrics_reporter.cc
index 30b032c..3017a87 100644
--- a/test/pc/e2e/stats_based_network_quality_metrics_reporter.cc
+++ b/test/pc/e2e/stats_based_network_quality_metrics_reporter.cc
@@ -278,7 +278,7 @@
       Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
   metrics_logger_->LogSingleValueMetric(
       "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);
   metrics_logger_->LogSingleValueMetric(
       "bytes_received", GetTestCaseName(pc_label),
@@ -289,7 +289,7 @@
       Unit::kUnitless, ImprovementDirection::kNeitherIsBetter);
   metrics_logger_->LogSingleValueMetric(
       "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);
   metrics_logger_->LogSingleValueMetric(
       "sent_packets_loss", GetTestCaseName(pc_label), packet_loss,