diff options
Diffstat (limited to 'cpp/src/tests/perftest.cpp')
-rw-r--r-- | cpp/src/tests/perftest.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp index bd2c0d9933..d6185a0100 100644 --- a/cpp/src/tests/perftest.cpp +++ b/cpp/src/tests/perftest.cpp @@ -205,7 +205,7 @@ struct Setup : public Client { } } // Make sure this is all completed before we return. - session.execution().sendSyncRequest(); + session.getExecution().sendSyncRequest(); } }; @@ -231,13 +231,9 @@ class Stats { // Functor to collect rates. void operator()(const string& data) { - try { - double d=lexical_cast<double>(data); - values.push_back(d); - sum += d; - } catch (...) { - throw Exception(QPID_MSG("Bad data, expecting double: " << data)); - } + double d=lexical_cast<double>(data); + values.push_back(d); + sum += d; } double mean() const { |