summaryrefslogtreecommitdiff
path: root/perf/c
diff options
context:
space:
mode:
authormalosek <malosek@fastmq.com>2009-09-08 14:54:52 +0200
committermalosek <malosek@fastmq.com>2009-09-08 14:54:52 +0200
commitb3fc14522574ccad233bee02ea135d8a93fb2441 (patch)
treee02c81fa44c08bf690d405c8f57dc3be68a01e8e /perf/c
parent2a4a10c8be92c5ce6314378fc4de163888075279 (diff)
parent3069b6bd54486346f7bfcce58d6a5e34d129965c (diff)
Merge branch 'master' of git@github.com:sustrik/zeromq2
Diffstat (limited to 'perf/c')
-rw-r--r--perf/c/local_thr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/perf/c/local_thr.c b/perf/c/local_thr.c
index 83ebee1..68d9ec6 100644
--- a/perf/c/local_thr.c
+++ b/perf/c/local_thr.c
@@ -73,7 +73,8 @@ int main (int argc, char *argv [])
if (elapsed == 0)
elapsed = 1;
- throughput = (double) message_count / (double) elapsed * 1000000;
+ throughput = (unsigned long)
+ ((double) message_count / (double) elapsed * 1000000);
megabits = (double) (throughput * message_size * 8) / 1000000;
printf ("message size: %d [B]\n", (int) message_size);