aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2012-06-22 18:36:15 -0700
committerMichael Wright <michaelwr@google.com>2012-06-22 18:40:34 -0700
commit2c6188187236e0147423c4e0cdc2faaeaf40d32c (patch)
tree81ad7a4d4eefc737ffd0d878880da88ed8ceb526 /ddms
parentccad6ba5ca9c19fb8be8d959634c1c4c91d27bd1 (diff)
downloadsdk-2c6188187236e0147423c4e0cdc2faaeaf40d32c.zip
sdk-2c6188187236e0147423c4e0cdc2faaeaf40d32c.tar.gz
sdk-2c6188187236e0147423c4e0cdc2faaeaf40d32c.tar.bz2
Fixed DDMS network statistics parsing
Change-Id: I6238185edd10227a01ae2f5282de18b17edb26bc
Diffstat (limited to 'ddms')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/net/NetworkPanel.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/net/NetworkPanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/net/NetworkPanel.java
index ae28d07..15b8b56 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/net/NetworkPanel.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/net/NetworkPanel.java
@@ -750,10 +750,11 @@ public class NetworkPanel extends TablePanel {
// iface and set are currently ignored, which groups those
// entries together.
final NetworkSnapshot.Entry entry = new NetworkSnapshot.Entry();
+
entry.iface = null; //cols[1];
- entry.uid = kernelToTag(cols[3]);
+ entry.uid = Integer.parseInt(cols[3]);
entry.set = -1; //Integer.parseInt(cols[4]);
- entry.tag = (int) (Long.decode(cols[2]) >> 32);
+ entry.tag = kernelToTag(cols[2]);
entry.rxBytes = Long.parseLong(cols[5]);
entry.rxPackets = Long.parseLong(cols[6]);
entry.txBytes = Long.parseLong(cols[7]);