summaryrefslogtreecommitdiff
path: root/perf/local_thr.cpp
diff options
context:
space:
mode:
authorMartin Lucina <martin@lucina.net>2012-01-23 08:54:14 +0100
committerMartin Lucina <martin@lucina.net>2012-01-23 08:54:14 +0100
commit75af6aed482ab16997c1388fe801f74d11ec12a4 (patch)
tree637249631acc81446f6b5c2e25223f3164e132f6 /perf/local_thr.cpp
parentb593ea30833ad5dcacb9076c988aec31b0cf26ec (diff)
Imported Upstream version 2.1.9upstream/2.1.9
Diffstat (limited to 'perf/local_thr.cpp')
-rw-r--r--perf/local_thr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/local_thr.cpp b/perf/local_thr.cpp
index 0dea8c6..b584c1d 100644
--- a/perf/local_thr.cpp
+++ b/perf/local_thr.cpp
@@ -115,7 +115,7 @@ int main (int argc, char *argv [])
throughput = (unsigned long)
((double) message_count / (double) elapsed * 1000000);
- megabits = (double) (throughput * message_size * 8) / 1000000;
+ megabits = (double) ((double) throughput * message_size * 8) / 1000000;
printf ("message size: %d [B]\n", (int) message_size);
printf ("message count: %d\n", (int) message_count);