diff options
author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-09-06 22:08:53 +0000 |
---|---|---|
committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-09-06 22:08:53 +0000 |
commit | e2ef6ad2cc37796d4a923891cd105f8b084d9f96 (patch) | |
tree | c7f153ecba1a3be6a9645bee8fca969b99567ba1 | |
parent | 7a1de8a92f32b8ff9bbee6c76d4ffdd29a6221e3 (diff) | |
download | qpid-python-e2ef6ad2cc37796d4a923891cd105f8b084d9f96.tar.gz |
QPID-3346: move timestamping after group generation code
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3346@1165900 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/tests/qpid-send.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/qpid-send.cpp b/qpid/cpp/src/tests/qpid-send.cpp index 3235ade26e..b1213a484f 100644 --- a/qpid/cpp/src/tests/qpid-send.cpp +++ b/qpid/cpp/src/tests/qpid-send.cpp @@ -397,9 +397,6 @@ int main(int argc, char ** argv) ++sent; if (opts.sequence) msg.getProperties()[SN] = sent; - if (opts.timestamp) - msg.getProperties()[TS] = int64_t( - qpid::sys::Duration(qpid::sys::EPOCH, qpid::sys::now())); if (opts.flowControl) { if ((sent % opts.flowControl) == 0) { msg.setReplyTo(flowControlAddress); @@ -408,10 +405,12 @@ int main(int argc, char ** argv) else msg.setReplyTo(Address()); // Clear the reply address. } - if (groupGen.get()) groupGen->setGroupInfo(msg); + if (opts.timestamp) + msg.getProperties()[TS] = int64_t( + qpid::sys::Duration(qpid::sys::EPOCH, qpid::sys::now())); sender.send(msg); reporter.message(msg); |