From 2fe9565129add8c1202ff88878a936660e6be551 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 13 Apr 2010 17:43:12 +0000 Subject: qpid_cpp_benchmark: print send/receive stats side-by-side git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933719 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/Statistics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/Statistics.cpp') diff --git a/cpp/src/tests/Statistics.cpp b/cpp/src/tests/Statistics.cpp index 87cab2926c..a3852e64af 100644 --- a/cpp/src/tests/Statistics.cpp +++ b/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; -- cgit v1.2.1