summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Statistics.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-13 17:43:12 +0000
committerAlan Conway <aconway@apache.org>2010-04-13 17:43:12 +0000
commit45eed7cebb326d9cc9655420d57852904f517a3d (patch)
tree6a879ca995f4505b53ee6b6e155729de58bfe484 /qpid/cpp/src/tests/Statistics.cpp
parentaae820278915bedf57ce4881caf9e29afe186d32 (diff)
downloadqpid-python-45eed7cebb326d9cc9655420d57852904f517a3d.tar.gz
qpid_cpp_benchmark: print send/receive stats side-by-side
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@933719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Statistics.cpp')
-rw-r--r--qpid/cpp/src/tests/Statistics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/Statistics.cpp b/qpid/cpp/src/tests/Statistics.cpp
index 87cab2926c..a3852e64af 100644
--- a/qpid/cpp/src/tests/Statistics.cpp
+++ b/qpid/cpp/src/tests/Statistics.cpp
@@ -81,7 +81,7 @@ void ThroughputAndLatency::report(ostream& o) const {
o << fixed << setprecision(2)
<< '\t' << min << '\t' << max << '\t' << total/messages;
else
- o << "Can't compute latency for 0 messages.";
+ o << "\t<0 messages, can't compute latency>";
}
ReporterBase::ReporterBase(ostream& o, int batch, bool wantHeader)
@@ -109,6 +109,7 @@ void ReporterBase::message(const messaging::Message& m) {
/** Print overall report. */
void ReporterBase::report() {
+ if (!overall.get()) overall = create();
header();
overall->report(out);
out << endl;