summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--performance-tests/Server_Concurrency/Latency_Stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/performance-tests/Server_Concurrency/Latency_Stats.h b/performance-tests/Server_Concurrency/Latency_Stats.h
index 02f7b0caa9b..951a8ae110d 100644
--- a/performance-tests/Server_Concurrency/Latency_Stats.h
+++ b/performance-tests/Server_Concurrency/Latency_Stats.h
@@ -120,6 +120,9 @@ private:
inline void
Throughput_Stats::accumulate (const Throughput_Stats& rhs)
{
+ if (rhs.n_ == 0)
+ return;
+
if (this->n_ == 0)
{
this->start_ = rhs.start_;