summaryrefslogtreecommitdiff
path: root/perf/c/local_thr.c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@jozsi.(none)>2009-09-07 11:01:42 +0200
committerMartin Sustrik <sustrik@jozsi.(none)>2009-09-07 11:01:42 +0200
commitd62c74232a4c1edd38004933afd0c7dc119bd98b (patch)
tree72881bf447ea1d29459b2cd32819dfd951a78797 /perf/c/local_thr.c
parent11a6cb925f7ff3d17f48edccc886839b4d49ef0b (diff)
parent63b56d7fb38624c32111f9188d54b6fefb10a0e5 (diff)
Merge branch 'master' of git://github.com/sustrik/zeromq2
Diffstat (limited to 'perf/c/local_thr.c')
-rw-r--r--perf/c/local_thr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/perf/c/local_thr.c b/perf/c/local_thr.c
index 64c492d..71ed21c 100644
--- a/perf/c/local_thr.c
+++ b/perf/c/local_thr.c
@@ -41,13 +41,12 @@ int main (int argc, char *argv [])
double megabits;
if (argc != 4) {
- printf ("usage: local_thr <bind-to> <message-count> "
- "<message-size>\n");
+ printf ("usage: local_thr <bind-to> <message-size> <message-count>\n");
return 1;
}
bind_to = argv [1];
- message_count = atoi (argv [2]);
- message_size = atoi (argv [3]);
+ message_size = atoi (argv [2]);
+ message_count = atoi (argv [3]);
ctx = zmq_init (1, 1);
assert (ctx);
@@ -92,6 +91,9 @@ int main (int argc, char *argv [])
printf ("mean throughput: %d [msg/s]\n", (int) throughput);
printf ("mean throughput: %.3f [Mb/s]\n", (double) megabits);
+ rc = zmq_close (s);
+ assert (rc == 0);
+
rc = zmq_term (ctx);
assert (rc == 0);