summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/network/nettop.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-14 12:34:11 -0400
committerDave Brolley <brolley@redhat.com>2009-04-14 12:34:11 -0400
commit6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd (patch)
tree7491c5c2357768fafe21752c3a16436f23c51f70 /testsuite/systemtap.examples/network/nettop.stp
parenta2422e707214a425e4e10ac5b7c39fc5ae4dea56 (diff)
parentb9c2e81cc7a62336ec1daf374cb3411add772ab4 (diff)
downloadsystemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.tar.gz
systemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.tar.xz
systemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.examples/network/nettop.stp')
-rwxr-xr-xtestsuite/systemtap.examples/network/nettop.stp8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/systemtap.examples/network/nettop.stp b/testsuite/systemtap.examples/network/nettop.stp
index b84e4882..e96548f1 100755
--- a/testsuite/systemtap.examples/network/nettop.stp
+++ b/testsuite/systemtap.examples/network/nettop.stp
@@ -19,11 +19,11 @@ function print_activity()
"PID", "UID", "DEV", "XMIT_PK", "RECV_PK",
"XMIT_KB", "RECV_KB", "COMMAND")
- foreach ([pid, dev, exec, uid] in ifrecv-) {
- ifmerged[pid, dev, exec, uid] = 1;
+ foreach ([pid, dev, exec, uid] in ifrecv) {
+ ifmerged[pid, dev, exec, uid] += @count(ifrecv[pid,dev,exec,uid]);
}
- foreach ([pid, dev, exec, uid] in ifxmit-) {
- ifmerged[pid, dev, exec, uid] = 1;
+ foreach ([pid, dev, exec, uid] in ifxmit) {
+ ifmerged[pid, dev, exec, uid] += @count(ifxmit[pid,dev,exec,uid]);
}
foreach ([pid, dev, exec, uid] in ifmerged-) {
n_xmit = @count(ifxmit[pid, dev, exec, uid])