This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/master by this push:
new 687b690f Fix invalid_argument exception running benchmark
687b690f is described below
commit 687b690f59d7f2166be4f48adba379adba2f1592
Author: Stephen Webb <[email protected]>
AuthorDate: Thu Apr 27 17:56:11 2023 +1000
Fix invalid_argument exception running benchmark
---
src/test/cpp/benchmark/benchmark.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/cpp/benchmark/benchmark.cpp
b/src/test/cpp/benchmark/benchmark.cpp
index 6596dd5a..638a1590 100644
--- a/src/test/cpp/benchmark/benchmark.cpp
+++ b/src/test/cpp/benchmark/benchmark.cpp
@@ -90,7 +90,7 @@ public:
{
auto threadCount = helpers::StringHelper::toInt
(helpers::OptionConverter::getSystemProperty
- (LOG4CXX_STR("LOG4CXX_BENCHMARK_THREAD_COUNT"),
LOG4CXX_STR("")));
+ (LOG4CXX_STR("LOG4CXX_BENCHMARK_THREAD_COUNT"),
LOG4CXX_STR("0")));
if (threadCount <= 0)
threadCount = std::thread::hardware_concurrency() - 2;
return threadCount;
@@ -100,7 +100,7 @@ public:
{
auto milliseconds = helpers::StringHelper::toInt
(helpers::OptionConverter::getSystemProperty
-
(LOG4CXX_STR("LOG4CXX_BENCHMARK_WARM_UP_MILLISECONDS"), LOG4CXX_STR("")));
+
(LOG4CXX_STR("LOG4CXX_BENCHMARK_WARM_UP_MILLISECONDS"), LOG4CXX_STR("0")));
if (milliseconds <= 0)
milliseconds = 100;
return milliseconds / 1000;