diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-11-14 20:26:55 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-11-14 20:26:55 +0000 |
commit | d25c617ad6e83e460f0fd1f693429fa1ec9756b7 (patch) | |
tree | b527e57a1ac8891ba6c2b6e850af57d46650a342 /cpp/src/tests/latencytest.cpp | |
parent | 8b64ff2a0bb8c3a40734c93081d801089bf94760 (diff) | |
download | qpid-python-d25c617ad6e83e460f0fd1f693429fa1ec9756b7.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/qpid@714126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/latencytest.cpp')
-rw-r--r-- | cpp/src/tests/latencytest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<double>::max(); } Sender::Sender(const string& q, Receiver& receiver) : Client(q), receiver(receiver), data(generateData(opts.size)) {} |