summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-05 07:29:49 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-01-05 07:29:49 -0800
commit1a26acd4e21fc362447856ca12a3703b337b9b32 (patch)
tree194fed8fce80a9f5e965aec9de490df8469d8155 /test
parenta33b3576dc83169305957ff4c20ebb05bfa33a07 (diff)
downloadconnman-1a26acd4e21fc362447856ca12a3703b337b9b32.tar.gz
connman-1a26acd4e21fc362447856ca12a3703b337b9b32.tar.bz2
connman-1a26acd4e21fc362447856ca12a3703b337b9b32.zip
Include interface name in statistics usage
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-counter5
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__':