summaryrefslogtreecommitdiff
path: root/perf/python/remote_lat.py
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-04 16:02:41 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-04 16:02:41 +0200
commit4307baf7bcc71ca91da0175e79cdfbf6cc1ad770 (patch)
treee4d5e5b663e6e98d21e9aa7f7ff180bbbbb71593 /perf/python/remote_lat.py
parent450b31c3b263ee6ceea27517a2a969d0c74bcd7e (diff)
python binding functional
Diffstat (limited to 'perf/python/remote_lat.py')
-rw-r--r--perf/python/remote_lat.py4
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, )