diff options
author | Martin Sustrik <sustrik@jozsi.(none)> | 2009-09-07 11:01:42 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@jozsi.(none)> | 2009-09-07 11:01:42 +0200 |
commit | d62c74232a4c1edd38004933afd0c7dc119bd98b (patch) | |
tree | 72881bf447ea1d29459b2cd32819dfd951a78797 /perf/python/remote_lat.py | |
parent | 11a6cb925f7ff3d17f48edccc886839b4d49ef0b (diff) | |
parent | 63b56d7fb38624c32111f9188d54b6fefb10a0e5 (diff) |
Merge branch 'master' of git://github.com/sustrik/zeromq2
Diffstat (limited to 'perf/python/remote_lat.py')
-rw-r--r-- | perf/python/remote_lat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perf/python/remote_lat.py b/perf/python/remote_lat.py index 372f567..f2ee04a 100644 --- a/perf/python/remote_lat.py +++ b/perf/python/remote_lat.py @@ -23,7 +23,7 @@ import libpyzmq def main (): if len(sys.argv) != 4: - print 'usage: remote_lat <connect-to> <roundtrip-count> <message-size>' + print 'usage: remote_lat <connect-to> <message-size> <roundtrip-count>' sys.exit (1) try: @@ -49,7 +49,7 @@ def main (): end = datetime.now () delta = (end - start).microseconds + 1000000 * (end - start).seconds - latency = delta / roundtrip_count / 2 + latency = float (delta) / roundtrip_count / 2 print "message size: %.0f [B]" % (message_size, ) print "roundtrip count: %.0f" % (roundtrip_count, ) |