summaryrefslogtreecommitdiff
path: root/perf/c/local_lat.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/c/local_lat.c')
-rw-r--r--perf/c/local_lat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/perf/c/local_lat.c b/perf/c/local_lat.c
index 81a2e0c..92cfadf 100644
--- a/perf/c/local_lat.c
+++ b/perf/c/local_lat.c
@@ -35,13 +35,13 @@ int main (int argc, char *argv [])
struct zmq_msg_t msg;
if (argc != 4) {
- printf ("usage: local_lat <bind-to> <roundtrip-count> "
- "<message-size>\n");
+ printf ("usage: local_lat <bind-to> <message-size> "
+ "<roundtrip-count>\n");
return 1;
}
bind_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);
@@ -68,6 +68,9 @@ int main (int argc, char *argv [])
sleep (1);
+ rc = zmq_close (s);
+ assert (rc == 0);
+
rc = zmq_term (ctx);
assert (rc == 0);