diff options
author | Kim van der Riet <kpvdr@apache.org> | 2011-10-19 13:48:39 +0000 |
---|---|---|
committer | Kim van der Riet <kpvdr@apache.org> | 2011-10-19 13:48:39 +0000 |
commit | 69a3e120898fe74b93c0dc951d8a6e214b07c770 (patch) | |
tree | bbd4a6d16d62940b8d735207f96048a0d9392606 | |
parent | ce4728a47547b5c038a79701140bb95976474cdd (diff) | |
download | qpid-python-69a3e120898fe74b93c0dc951d8a6e214b07c770.tar.gz |
QPID-3550: qpid-perftest fails if --npubs < --nsubs and --iterations > 0. Fixed the number of next messages sent to the sub_iteration queue.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1186215 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/tests/qpid-perftest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/tests/qpid-perftest.cpp b/cpp/src/tests/qpid-perftest.cpp index dd81354adb..664f0cf877 100644 --- a/cpp/src/tests/qpid-perftest.cpp +++ b/cpp/src/tests/qpid-perftest.cpp @@ -173,7 +173,7 @@ struct Opts : public TestOptions { if (count % subs) { count += subs - (count % subs); cout << "WARNING: Adjusted --count to " << count - << " the nearest multiple of --nsubs" << endl; + << " the next multiple of --nsubs" << endl; } totalPubs = pubs*qt; totalSubs = subs*qt; @@ -413,7 +413,7 @@ struct Controller : public Client { AbsTime start=now(); send(opts.totalPubs, fqn("pub_start"), "start"); // Start publishers if (j) { - send(opts.totalPubs, fqn("sub_iteration"), "next"); // Start subscribers on next iteration + send(opts.totalSubs, fqn("sub_iteration"), "next"); // Start subscribers on next iteration } Stats pubRates; @@ -546,9 +546,9 @@ struct PublishThread : public Client { if (opts.confirm) session.sync(); AbsTime end=now(); double time=secs(start,end); - if (time <= 0.0) { - throw Exception("ERROR: Test completed in zero seconds. Try again with a larger message count."); - } + if (time <= 0.0) { + throw Exception("ERROR: Test completed in zero seconds. Try again with a larger message count."); + } // Send result to controller. Message report(lexical_cast<string>(opts.count/time), fqn("pub_done")); |