summaryrefslogtreecommitdiff
path: root/cpp/src/tests/qpid_stream.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-29 19:21:26 +0000
committerGordon Sim <gsim@apache.org>2010-03-29 19:21:26 +0000
commitd09dd6cf7e4b37b2945ea97c823636febed0bb39 (patch)
tree9a5bfaa339d7576594edbf90e314e19f0807b18c /cpp/src/tests/qpid_stream.cpp
parentadfea171e68298b9b0ced9fe54c2232b963e077e (diff)
downloadqpid-python-d09dd6cf7e4b37b2945ea97c823636febed0bb39.tar.gz
QPID-664: renamed headers as properties (to match python); added priority
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid_stream.cpp')
-rw-r--r--cpp/src/tests/qpid_stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/qpid_stream.cpp b/cpp/src/tests/qpid_stream.cpp
index e451198ef4..642b7a821f 100644
--- a/cpp/src/tests/qpid_stream.cpp
+++ b/cpp/src/tests/qpid_stream.cpp
@@ -119,7 +119,7 @@ struct Publish : Client
qpid::sys::AbsTime start = qpid::sys::now();
while (true) {
qpid::sys::AbsTime sentAt = qpid::sys::now();
- msg.getHeaders()[TIMESTAMP] = timestamp(sentAt);
+ msg.getProperties()[TIMESTAMP] = timestamp(sentAt);
sender.send(msg);
++sent;
qpid::sys::AbsTime waitTill(start, sent*interval);
@@ -151,7 +151,7 @@ struct Consume : Client
}
//calculate latency
uint64_t receivedAt = timestamp(qpid::sys::now());
- uint64_t sentAt = msg.getHeaders()[TIMESTAMP].asUint64();
+ uint64_t sentAt = msg.getProperties()[TIMESTAMP].asUint64();
double latency = ((double) (receivedAt - sentAt)) / qpid::sys::TIME_MSEC;
//update avg, min & max