summaryrefslogtreecommitdiff
path: root/performance-tests/Server_Concurrency
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-17 16:54:01 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-17 16:54:01 +0000
commitbdd86320e2cb86fcba0afcfbc9f6743158e08acf (patch)
tree0ebc472bd0fe1c1720eb3613da845ca098a0e4c9 /performance-tests/Server_Concurrency
parent0aba9a5341cbd38b511bef4497d094daf3d6d00b (diff)
downloadATCD-bdd86320e2cb86fcba0afcfbc9f6743158e08acf.tar.gz
Fixed minor bug
Diffstat (limited to 'performance-tests/Server_Concurrency')
-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_;