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 | 45eed7cebb326d9cc9655420d57852904f517a3d (patch) | |
| tree | 6a879ca995f4505b53ee6b6e155729de58bfe484 /qpid/cpp/src/tests/Statistics.cpp | |
| parent | aae820278915bedf57ce4881caf9e29afe186d32 (diff) | |
| download | qpid-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.cpp | 3 |
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; |
