summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.com>2009-09-08 13:55:13 +0200
committerMartin Sustrik <sustrik@fastmq.com>2009-09-08 13:55:13 +0200
commit3069b6bd54486346f7bfcce58d6a5e34d129965c (patch)
treecdef109605b657baa1abc28cada66425dda438c5 /perf
parentec6822a477b89ac77afc90425bf36c4829dbef3d (diff)
win port of java binding + java perf tests
Diffstat (limited to 'perf')
-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);