From d25c617ad6e83e460f0fd1f693429fa1ec9756b7 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Fri, 14 Nov 2008 20:26:55 +0000 Subject: QPID-1465: Fixed initialisation of minimum value so it is tracked correctly git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714126 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/latencytest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/tests/latencytest.cpp b/cpp/src/tests/latencytest.cpp index 763ce5a85a..25de361d11 100644 --- a/cpp/src/tests/latencytest.cpp +++ b/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::max(); } Sender::Sender(const string& q, Receiver& receiver) : Client(q), receiver(receiver), data(generateData(opts.size)) {} -- cgit v1.2.1