summaryrefslogtreecommitdiff
path: root/perf/cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 14:59:53 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-02 14:59:53 +0200
commitf92de9b2a9ad73fd7cd966e65b5a06b725e779fc (patch)
tree119769a0bf8623e5c266c232eb1ee29cccaaa1af /perf/cpp
parent702fdbb5dd6a83e7f656e8d1190e695ebb636765 (diff)
bug during terminal shutdown fixed
Diffstat (limited to 'perf/cpp')
-rw-r--r--perf/cpp/local_thr.cpp2
-rw-r--r--perf/cpp/remote_lat.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/perf/cpp/local_thr.cpp b/perf/cpp/local_thr.cpp
index e328117..3e961de 100644
--- a/perf/cpp/local_thr.cpp
+++ b/perf/cpp/local_thr.cpp
@@ -71,7 +71,7 @@ int main (int argc, char *argv [])
printf ("message size: %d [B]\n", (int) message_size);
printf ("message count: %d\n", (int) message_count);
printf ("mean throughput: %d [msg/s]\n", (int) throughput);
- printf ("mean throughput: %3f [Mb/s]\n", (double) megabits);
+ printf ("mean throughput: %.3f [Mb/s]\n", (double) megabits);
return 0;
}
diff --git a/perf/cpp/remote_lat.cpp b/perf/cpp/remote_lat.cpp
index 3472fd8..169ed1e 100644
--- a/perf/cpp/remote_lat.cpp
+++ b/perf/cpp/remote_lat.cpp
@@ -64,7 +64,7 @@ int main (int argc, char *argv [])
printf ("message size: %d [B]\n", (int) message_size);
printf ("roundtrip count: %d\n", (int) roundtrip_count);
- printf ("average latency: %3f [us]\n", (double) latency);
+ printf ("average latency: %.3f [us]\n", (double) latency);
return 0;
}