summaryrefslogtreecommitdiff
path: root/perf/c/remote_lat.c
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/c/remote_lat.c
parent450b31c3b263ee6ceea27517a2a969d0c74bcd7e (diff)
python binding functional
Diffstat (limited to 'perf/c/remote_lat.c')
-rw-r--r--perf/c/remote_lat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/perf/c/remote_lat.c b/perf/c/remote_lat.c
index 32329b8..6da1c42 100644
--- a/perf/c/remote_lat.c
+++ b/perf/c/remote_lat.c
@@ -39,13 +39,13 @@ int main (int argc, char *argv [])
double latency;
if (argc != 4) {
- printf ("usage: remote_lat <connect-to> <roundtrip-count> "
- "<message-size>\n");
+ printf ("usage: remote_lat <connect-to> <message-size> "
+ "<roundtrip-count>\n");
return 1;
}
connect_to = argv [1];
- roundtrip_count = atoi (argv [2]);
- message_size = atoi (argv [3]);
+ message_size = atoi (argv [2]);
+ roundtrip_count = atoi (argv [3]);
ctx = zmq_init (1, 1);
assert (ctx);
@@ -87,6 +87,9 @@ int main (int argc, char *argv [])
printf ("roundtrip count: %d\n", (int) roundtrip_count);
printf ("average latency: %.3f [us]\n", (double) latency);
+ rc = zmq_close (s);
+ assert (rc == 0);
+
rc = zmq_term (ctx);
assert (rc == 0);