Print signal strength as integer and not character
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Dec 2008 23:25:36 +0000 (00:25 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Dec 2008 23:25:36 +0000 (00:25 +0100)
test/list-connections

index 806490d..a656e96 100755 (executable)
@@ -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