You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2023/04/27 07:57:18 UTC

[logging-log4cxx] branch master updated: Fix invalid_argument exception running benchmark

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 <sw...@gmail.com>
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;