diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-07-25 12:04:33 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-25 12:04:33 -0700 |
commit | 0d5174d14c5b795ef306ddc6a740ad22c53a71d6 (patch) | |
tree | 40462522787eabcf12cf6eab7d3590bc7e8db7f3 /test | |
parent | c4fd43a4ca1de3665407abe852a9a81ecdb1dd88 (diff) | |
download | connman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.tar.gz connman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.tar.bz2 connman-0d5174d14c5b795ef306ddc6a740ad22c53a71d6.zip |
Fix script for testing counter interface
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-counter | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-counter b/test/test-counter index 2cdee341..8b3062ca 100755 --- a/test/test-counter +++ b/test/test-counter @@ -59,14 +59,14 @@ if __name__ == '__main__': manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"), 'org.moblin.connman.Manager') - interval = 2 + period = 2 if len(sys.argv) > 1: - interval = sys.argv[1] + period = sys.argv[1] - path = "/test/counter%s" % interval + path = "/test/counter%s" % period object = Counter(bus, path) - manager.RegisterCounter(path, dbus.UInt32(interval)) + manager.RegisterCounter(path, dbus.UInt32(10), dbus.UInt32(period)) mainloop = gobject.MainLoop() mainloop.run() |