diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-24 00:25:36 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-24 00:25:36 +0100 |
commit | 32432074e42578a5acd4e47be993b81915d70581 (patch) | |
tree | 7e28ab6c545022be906369a4df0b7ba033b6f143 /test | |
parent | da9561f7d0b8eee43a26321dcf50527615d9655d (diff) | |
download | connman-32432074e42578a5acd4e47be993b81915d70581.tar.gz connman-32432074e42578a5acd4e47be993b81915d70581.tar.bz2 connman-32432074e42578a5acd4e47be993b81915d70581.zip |
Print signal strength as integer and not character
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-connections | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/list-connections b/test/list-connections index 806490db..a656e964 100755 --- a/test/list-connections +++ b/test/list-connections @@ -18,6 +18,10 @@ for path in properties["Connections"]: print "[ %s ]" % (path) for key in properties.keys(): - print " %s = %s" % (key, properties[key]) + if key == "Strength": + val = int(properties[key]) + else: + val = str(properties[key]) + print " %s = %s" % (key, val) print |