summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/jni/android_net_TrafficStats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_net_TrafficStats.cpp b/core/jni/android_net_TrafficStats.cpp
index 9e60904..0df8638 100644
--- a/core/jni/android_net_TrafficStats.cpp
+++ b/core/jni/android_net_TrafficStats.cpp
@@ -87,8 +87,8 @@ static int parseIfaceStats(const char* iface, struct Stats* stats) {
while (fgets(buffer, sizeof(buffer), fp) != NULL) {
int matched = sscanf(buffer, "%31s %llu %llu %llu %llu "
- "%*llu %llu %*llu %*llu %*llu %*llu "
- "%*llu %llu %*llu %*llu %*llu %*llu", cur_iface, &rxBytes,
+ "%*u %llu %*u %*u %*u %*u "
+ "%*u %llu %*u %*u %*u %*u", cur_iface, &rxBytes,
&rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets);
if (matched >= 5) {
if (matched == 7) {