diff options
| author | Alan Conway <aconway@apache.org> | 2010-04-13 17:43:12 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-04-13 17:43:12 +0000 |
| commit | 2fe9565129add8c1202ff88878a936660e6be551 (patch) | |
| tree | 547e68a28da179e59d98395bc3cb1e76b43453f6 /cpp/src/tests/Statistics.cpp | |
| parent | b8a284439c00e81c21307f651c71f8256ae725f9 (diff) | |
| download | qpid-python-2fe9565129add8c1202ff88878a936660e6be551.tar.gz | |
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
Diffstat (limited to 'cpp/src/tests/Statistics.cpp')
| -rw-r--r-- | cpp/src/tests/Statistics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
