diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2010-07-08 15:32:02 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-08 10:35:46 -0300 |
commit | e9d553694c5863a89121ca9458ce95cdb478f3f1 (patch) | |
tree | 754b4d3b765bab61a924ca1a621be344ccf4ffcb /test/test-counter | |
parent | 94d84fcb66a9a2ffce3a2ae688c3e2e958a21a3f (diff) | |
download | connman-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-x | test/test-counter | 6 |
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) |