summaryrefslogtreecommitdiff
path: root/perf/c/local_thr.c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 14:59:53 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 14:59:53 +0200
commitf92de9b2a9ad73fd7cd966e65b5a06b725e779fc (patch)
tree119769a0bf8623e5c266c232eb1ee29cccaaa1af /perf/c/local_thr.c
parent702fdbb5dd6a83e7f656e8d1190e695ebb636765 (diff)
bug during terminal shutdown fixed
Diffstat (limited to 'perf/c/local_thr.c')
-rw-r--r--perf/c/local_thr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/perf/c/local_thr.c b/perf/c/local_thr.c
index b58fac3..64c492d 100644
--- a/perf/c/local_thr.c
+++ b/perf/c/local_thr.c
@@ -90,7 +90,10 @@ int main (int argc, char *argv [])
printf ("message size: %d [B]\n", (int) message_size);
printf ("message count: %d\n", (int) message_count);
printf ("mean throughput: %d [msg/s]\n", (int) throughput);
- printf ("mean throughput: %3f [Mb/s]\n", (double) megabits);
+ printf ("mean throughput: %.3f [Mb/s]\n", (double) megabits);
+
+ rc = zmq_term (ctx);
+ assert (rc == 0);
return 0;
}