summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/latencytest.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-11-14 20:26:55 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-11-14 20:26:55 +0000
commit4bbed16183cb9f90a7703024f6668bcb4669ecbb (patch)
tree1e4e3ec69ec3ca9d2f1626456e586454911e57ff /qpid/cpp/src/tests/latencytest.cpp
parent9c6edf73c49e689cf3ff267d564f32ddb0ac9556 (diff)
downloadqpid-python-4bbed16183cb9f90a7703024f6668bcb4669ecbb.tar.gz
QPID-1465: Fixed initialisation of minimum value so it is tracked correctly
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@714126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/latencytest.cpp')
-rw-r--r--qpid/cpp/src/tests/latencytest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/latencytest.cpp b/qpid/cpp/src/tests/latencytest.cpp
index 763ce5a85a..25de361d11 100644
--- a/qpid/cpp/src/tests/latencytest.cpp
+++ b/qpid/cpp/src/tests/latencytest.cpp
@@ -287,7 +287,8 @@ void Stats::reset()
{
Mutex::ScopedLock l(lock);
count = 0;
- totalLatency = maxLatency = minLatency = 0;
+ totalLatency = maxLatency = 0;
+ minLatency = std::numeric_limits<double>::max();
}
Sender::Sender(const string& q, Receiver& receiver) : Client(q), receiver(receiver), data(generateData(opts.size)) {}