projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da9561f
)
Print signal strength as integer and not character
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 23 Dec 2008 23:25:36 +0000
(
00:25
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 23 Dec 2008 23:25:36 +0000
(
00:25
+0100)
test/list-connections
patch
|
blob
|
history
diff --git
a/test/list-connections
b/test/list-connections
index
806490d
..
a656e96
100755
(executable)
--- 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