summaryrefslogtreecommitdiff
path: root/test/test-counter
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-counter')
-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__':