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 | 900e8cdd0593fbafd3a7b354ce65c462c5f9ed05 (patch) | |
| tree | eafcc2213b7510d2bcc31026606de24a41f4f981 /cpp | |
| parent | b185c006a0e176058d06fa296b7a1e94d8692dbb (diff) | |
| download | qpid-python-900e8cdd0593fbafd3a7b354ce65c462c5f9ed05.tar.gz | |
correct rate calc
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@563168 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/perftest/topic_publisher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/perftest/topic_publisher.cpp b/cpp/perftest/topic_publisher.cpp index 53b2c20775..96b66726c1 100644 --- a/cpp/perftest/topic_publisher.cpp +++ b/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; |
