summaryrefslogtreecommitdiff
path: root/cpp/src/tests/Statistics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/Statistics.cpp')
-rw-r--r--cpp/src/tests/Statistics.cpp3
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;