diff options
| author | Alan Conway <aconway@apache.org> | 2010-04-21 14:48:58 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-04-21 14:48:58 +0000 |
| commit | 9525974f263be413cf6badcb91480cfb80a60dda (patch) | |
| tree | 7ae41cc93a3b68a81cf433a9c8dff872fd3d736b /cpp/src/tests/Statistics.cpp | |
| parent | 29328cdac97ca7c171c380ebe8296900d9110bf0 (diff) | |
| download | qpid-python-9525974f263be413cf6badcb91480cfb80a60dda.tar.gz | |
Consistent use of string constants for message property keys in sender/receiver tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/Statistics.cpp')
| -rw-r--r-- | cpp/src/tests/Statistics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/tests/Statistics.cpp b/cpp/src/tests/Statistics.cpp index c002bc6a6a..2452dc8be9 100644 --- a/cpp/src/tests/Statistics.cpp +++ b/cpp/src/tests/Statistics.cpp @@ -56,9 +56,11 @@ ThroughputAndLatency::ThroughputAndLatency() : samples(0) {} +const std::string TS = "ts"; + void ThroughputAndLatency::message(const messaging::Message& m) { Throughput::message(m); - types::Variant::Map::const_iterator i = m.getProperties().find("ts"); + types::Variant::Map::const_iterator i = m.getProperties().find(TS); if (i != m.getProperties().end()) { ++samples; int64_t start(i->second.asInt64()); |
