summaryrefslogtreecommitdiff
path: root/performance-tests
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
commit7be7727bc1aa1caff7889602f958b0c4ea1bc3b5 (patch)
tree0ebc472bd0fe1c1720eb3613da845ca098a0e4c9 /performance-tests
parent003adb6a2cb727f80dc69d2b2ccb7a24488cfb68 (diff)
downloadATCD-7be7727bc1aa1caff7889602f958b0c4ea1bc3b5.tar.gz
Fixed minor bug
Diffstat (limited to 'performance-tests')
-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_;