diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-08-06 15:23:09 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-08-06 15:23:09 +0000 |
| commit | 61e60cc0af95f148278b82a4357a25e95d6587c3 (patch) | |
| tree | 3aad6acf1005eb39de7cb255c79c38f626be3575 /qpid/cpp | |
| parent | e800aa48a01046f5748e512e70f42308fe0dc8c3 (diff) | |
| download | qpid-python-61e60cc0af95f148278b82a4357a25e95d6587c3.tar.gz | |
correct rate calc
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@563168 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/perftest/topic_publisher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/perftest/topic_publisher.cpp b/qpid/cpp/perftest/topic_publisher.cpp index 53b2c20775..96b66726c1 100644 --- a/qpid/cpp/perftest/topic_publisher.cpp +++ b/qpid/cpp/perftest/topic_publisher.cpp @@ -60,7 +60,7 @@ void print_time() { if (::clock_gettime(CLOCK_REALTIME, &ts)) std::cout << "Error" << std::endl; std::cout << "Total Time:" << ts.tv_sec-_ts_sec <<"." <<ts.tv_nsec - _ts_nsec << std::endl; - float rate = messageCount/(ts.tv_sec-_ts_sec); + float rate = messageCount*2/(ts.tv_sec-_ts_sec); std::cout << "returned Messages:" << messageCount << std::endl; std::cout << "round trip Rate:" << rate << std::endl; } @@ -123,7 +123,7 @@ int main() { std::cout << "Setup return queue:"<< queueNameC << std::endl; - int count = 100000; + int count = 500000; Listener listener(count); channel.consume(completion, queueNameC, &listener); std::cout << "Setup consumer:"<< queueNameC << std::endl; |
