summaryrefslogtreecommitdiff
path: root/test/test-counter
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2010-07-08 15:32:02 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-07-08 10:35:46 -0300
commite9d553694c5863a89121ca9458ce95cdb478f3f1 (patch)
tree754b4d3b765bab61a924ca1a621be344ccf4ffcb /test/test-counter
parent94d84fcb66a9a2ffce3a2ae688c3e2e958a21a3f (diff)
downloadconnman-e9d553694c5863a89121ca9458ce95cdb478f3f1.tar.gz
connman-e9d553694c5863a89121ca9458ce95cdb478f3f1.tar.bz2
connman-e9d553694c5863a89121ca9458ce95cdb478f3f1.zip
Add additionals statistics counters
Adding rx_packets, tx_packets, rx_errors, tx_errors, rx_dropped and tx_dropped counters.
Diffstat (limited to 'test/test-counter')
-rwxr-xr-xtest/test-counter6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-counter b/test/test-counter
index 7c2fa4ab..111d4fc5 100755
--- a/test/test-counter
+++ b/test/test-counter
@@ -34,7 +34,11 @@ class Counter(dbus.service.Object):
in_signature='oa{sv}', out_signature='')
def Usage(self, path, stats):
print "%s" % (path)
- for key in stats.keys():
+
+ keys = stats.keys()
+ keys.sort()
+
+ for key in keys:
val = int(stats[key])
str = " %s = %s" % (key, val)