From 1e5976a3e99ea2b56bd7c6c12788345fe37e5ffa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 16 Jul 2023 15:44:40 +0200 Subject: -remove linger --- src/benchmark/taler-exchange-benchmark.c | 47 +++++++++++--------------------- 1 file changed, 16 insertions(+), 31 deletions(-) (limited to 'src/benchmark/taler-exchange-benchmark.c') diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index a4f9e11e7..35b96e077 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -124,11 +124,6 @@ static unsigned int label_len; */ static unsigned int label_off; -/** - * Linger around until stop is requested by the user explicitly by key stroke. - */ -static int linger; - /** * Performance counters. */ @@ -465,11 +460,6 @@ parallel_benchmark (TALER_TESTING_Main main_cb, } } } - if (GNUNET_YES == linger) - { - printf ("press ENTER to stop\n"); - (void) getchar (); - } return result; } @@ -491,8 +481,24 @@ main (int argc, &cfg_filename)), GNUNET_GETOPT_option_version ( PACKAGE_VERSION " " VCS_VERSION), + GNUNET_GETOPT_option_flag ( + 'f', + "fakebank", + "use fakebank for the banking system", + &use_fakebank), + GNUNET_GETOPT_option_flag ( + 'F', + "reserves-first", + "should all reserves be created first, before starting normal operations", + &reserves_first), GNUNET_GETOPT_option_help ( "Exchange benchmark"), + GNUNET_GETOPT_option_string ( + 'l', + "logfile", + "LF", + "will log to file LF", + &logfile), GNUNET_GETOPT_option_loglevel ( &loglev), GNUNET_GETOPT_option_uint ( @@ -519,33 +525,12 @@ main (int argc, "RATE", "Probability of refresh per coin (0-100)", &refresh_rate), - GNUNET_GETOPT_option_string ( - 'l', - "logfile", - "LF", - "will log to file LF", - &logfile), GNUNET_GETOPT_option_string ( 'u', "exchange-account-section", "SECTION", "use exchange bank account configuration from the given SECTION", &exchange_bank_section), - GNUNET_GETOPT_option_flag ( - 'f', - "fakebank", - "use fakebank for the banking system", - &use_fakebank), - GNUNET_GETOPT_option_flag ( - 'F', - "reserves-first", - "should all reserves be created first, before starting normal operations", - &reserves_first), - GNUNET_GETOPT_option_flag ( - 'K', - "linger", - "linger around until key press", - &linger), GNUNET_GETOPT_OPTION_END }; enum GNUNET_GenericReturnValue result; -- cgit v1.2.3