summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-02 23:45:31 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-02 23:45:31 +0200
commit5dd3c2191af0bb28a95fe4dac09eae7ed672cd48 (patch)
tree7a3e5bfd0894ddc8ae311a1f197979fa712e65b0
parent9c194f79a5d9fdba4d5cb9a0379bb8cae4778b95 (diff)
downloadexchange-5dd3c2191af0bb28a95fe4dac09eae7ed672cd48.tar.gz
exchange-5dd3c2191af0bb28a95fe4dac09eae7ed672cd48.tar.bz2
exchange-5dd3c2191af0bb28a95fe4dac09eae7ed672cd48.zip
benchmark: don't print result as exchange worker
-rw-r--r--src/benchmark/taler-exchange-benchmark.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
index eed8f80d..56928351 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -1048,8 +1048,14 @@ main (int argc,
NULL,
cfg_filename,
exchange_url);
+
GNUNET_free_non_null (exchange_url);
GNUNET_free_non_null (auditor_url);
+
+ /* If we're the exchange worker, we're done now. No need to print results */
+ if (MODE_EXCHANGE == mode)
+ return (GNUNET_OK == result) ? 0 : result;
+
duration = GNUNET_TIME_absolute_get_duration (start_time);
if (GNUNET_OK == result)
{