projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c4dd96
)
Print signal strength as integer
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 13 Dec 2008 23:37:10 +0000
(
00:37
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 13 Dec 2008 23:37:10 +0000
(
00:37
+0100)
test/monitor-connman
patch
|
blob
|
history
diff --git
a/test/monitor-connman
b/test/monitor-connman
index
2c4b9bd
..
0c4a2ef
100755
(executable)
--- a/
test/monitor-connman
+++ b/
test/monitor-connman
@@
-7,7
+7,11
@@
import dbus.mainloop.glib
def property_changed(name, value, path, interface):
iface = interface[interface.rfind(".") + 1:]
- print "{%s} [%s] %s = %s" % (iface, path, name, str(value))
+ if (name == "WiFi.Strength"):
+ val = int(value)
+ else:
+ val = str(value)
+ print "{%s} [%s] %s = %s" % (iface, path, name, val)
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)