diff options
author | Jeff Sharkey <jsharkey@google.com> | 2019-12-05 22:25:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-12-05 22:25:21 +0000 |
commit | b3f5eeab5e9f7c2b59c665834bbcb1594cd9db7a (patch) | |
tree | 89adb2e5cbb3015ecaaf22902c22af067c2c8d93 | |
parent | 34556e245240e95503127b70081d86b4c76510aa (diff) | |
parent | 635792beb0c02d23ce40385d2e45bcf76b3b2a53 (diff) |
Merge "Explicitly cast to avoid ambiguous method call."
-rw-r--r-- | metrics_reporter_android.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/metrics_reporter_android.cc b/metrics_reporter_android.cc index 4165c143..454649c0 100644 --- a/metrics_reporter_android.cc +++ b/metrics_reporter_android.cc @@ -176,13 +176,13 @@ void MetricsReporterAndroid::ReportSuccessfulUpdateMetrics( android::util::stats_write( android::util::UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED, - attempt_count, + static_cast<int32_t>(attempt_count), GetStatsdEnumValue(static_cast<int32_t>(payload_type)), - payload_size_mib, - total_bytes_downloaded, - download_overhead_percentage, - total_duration.InMinutes(), - reboot_count); + static_cast<int32_t>(payload_size_mib), + static_cast<int32_t>(total_bytes_downloaded), + static_cast<int32_t>(download_overhead_percentage), + static_cast<int32_t>(total_duration.InMinutes()), + static_cast<int32_t>(reboot_count)); } void MetricsReporterAndroid::ReportAbnormallyTerminatedUpdateAttemptMetrics() { |