From 3069b6bd54486346f7bfcce58d6a5e34d129965c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 8 Sep 2009 13:55:13 +0200 Subject: win port of java binding + java perf tests --- perf/c/local_thr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perf') 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); -- cgit v1.2.3