Handle signal strength property
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 15 Dec 2008 01:55:35 +0000 (02:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 15 Dec 2008 01:55:35 +0000 (02:55 +0100)
test/test-manager

index afeb110..c99b54b 100755 (executable)
@@ -30,7 +30,13 @@ def print_properties(key, value):
                for key in properties.keys():
                        if (key == "Networks"):
                                continue
-                       print "        %s = %s" % (key, properties[key])
+
+                       if (key == "Strength"):
+                               val = int(properties[key])
+                       else:
+                               val = str(properties[key])
+
+                       print "        %s = %s" % (key, val)
 
                if "Networks" in properties.keys():
                        list = ""