diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-01-05 07:29:49 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-01-05 07:29:49 -0800 |
commit | 1a26acd4e21fc362447856ca12a3703b337b9b32 (patch) | |
tree | 194fed8fce80a9f5e965aec9de490df8469d8155 /test | |
parent | a33b3576dc83169305957ff4c20ebb05bfa33a07 (diff) | |
download | connman-1a26acd4e21fc362447856ca12a3703b337b9b32.tar.gz connman-1a26acd4e21fc362447856ca12a3703b337b9b32.tar.bz2 connman-1a26acd4e21fc362447856ca12a3703b337b9b32.zip |
Include interface name in statistics usage
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-counter | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-counter b/test/test-counter index d000a8d0..6a42885e 100755 --- a/test/test-counter +++ b/test/test-counter @@ -17,7 +17,10 @@ class Counter(dbus.service.Object): in_signature='a{sv}', out_signature='') def Usage(self, stats): for key in stats.keys(): - val = int(stats[key]) + if key in ["Interface"]: + val = str(stats[key]) + else: + val = int(stats[key]) print "%s = %s" % (key, val) if __name__ == '__main__': |