summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Junyu Lai <junyulai@google.com> 2018-11-13 09:15:37 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-11-13 09:15:37 +0000
commit2c0a0092f15c97034c0bc61706fb21e5837e822e (patch)
tree71993555713adf7b3fc4e58e10d3d1269fe82ef1
parenta97bdb957f3526d03314bdc894a3632ca208777f (diff)
parent5aa232e4aeb8cdf749da31a2501aeb3af914120d (diff)
Merge "Change types of fields of network stats reported to framework."
-rw-r--r--core/jni/com_android_internal_net_NetworkStatsFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/com_android_internal_net_NetworkStatsFactory.cpp b/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
index b3ff4dbf8bef..b708735616c4 100644
--- a/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
+++ b/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
@@ -175,7 +175,7 @@ static int legacyReadNetworkStatsDetail(std::vector<stats_line>* lines,
}
}
s.tag = rawTag >> 32;
- if (limitTag != -1 && s.tag != limitTag) {
+ if (limitTag != -1 && s.tag != static_cast<uint32_t>(limitTag)) {
//ALOGI("skipping due to tag: %s", buffer);
continue;
}
@@ -188,7 +188,7 @@ static int legacyReadNetworkStatsDetail(std::vector<stats_line>* lines,
if (sscanf(pos, "%u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64,
&s.uid, &s.set, &s.rxBytes, &s.rxPackets,
&s.txBytes, &s.txPackets) == 6) {
- if (limitUid != -1 && limitUid != s.uid) {
+ if (limitUid != -1 && static_cast<uint32_t>(limitUid) != s.uid) {
//ALOGI("skipping due to uid: %s", buffer);
continue;
}