summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
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);