diff options
Diffstat (limited to 'src/ats/perf_ats_solver.c')
-rw-r--r-- | src/ats/perf_ats_solver.c | 57 |
1 files changed, 36 insertions, 21 deletions
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index f05668e9b..855899b36 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c | |||
@@ -1404,27 +1404,42 @@ main (int argc, char *argv[]) | |||
1404 | ph.total_iterations = 1; | 1404 | ph.total_iterations = 1; |
1405 | 1405 | ||
1406 | static struct GNUNET_GETOPT_CommandLineOption options[] = { | 1406 | static struct GNUNET_GETOPT_CommandLineOption options[] = { |
1407 | { 'a', "addresses", NULL, | 1407 | |
1408 | gettext_noop ("addresses to use"), | 1408 | GNUNET_GETOPT_OPTION_SET_UINT ('a', |
1409 | 1, &GNUNET_GETOPT_set_uint, &ph.N_address }, | 1409 | "addresses", |
1410 | { 's', "start", NULL, | 1410 | gettext_noop ("addresses to use"), |
1411 | gettext_noop ("start with peer"), | 1411 | &ph.N_address), |
1412 | 1, &GNUNET_GETOPT_set_uint, &ph.N_peers_start }, | 1412 | |
1413 | { 'e', "end", NULL, | 1413 | GNUNET_GETOPT_OPTION_SET_UINT ('s', |
1414 | gettext_noop ("end with peer"), | 1414 | "start", |
1415 | 1, &GNUNET_GETOPT_set_uint, &ph.N_peers_end }, | 1415 | gettext_noop ("start with peer"), |
1416 | { 'i', "iterations", NULL, | 1416 | &ph.N_peers_start), |
1417 | gettext_noop ("number of iterations used for averaging (default: 1)"), | 1417 | |
1418 | 1, &GNUNET_GETOPT_set_uint, &ph.total_iterations }, | 1418 | GNUNET_GETOPT_OPTION_SET_UINT ('e', |
1419 | { 'p', "percentage", NULL, | 1419 | "end", |
1420 | gettext_noop ("update a fix percentage of addresses"), | 1420 | gettext_noop ("end with peer"), |
1421 | 1, &GNUNET_GETOPT_set_uint, &ph.opt_update_percent }, | 1421 | &ph.N_peers_end), |
1422 | { 'd', "data", NULL, | 1422 | |
1423 | gettext_noop ("create data file"), | 1423 | GNUNET_GETOPT_OPTION_SET_UINT ('i', |
1424 | 0, &GNUNET_GETOPT_set_one, &ph.create_datafile}, | 1424 | "iterations", |
1425 | { 'u', "update", NULL, | 1425 | gettext_noop ("number of iterations used for averaging (default: 1)"), |
1426 | gettext_noop ("measure updates"), | 1426 | &ph.total_iterations), |
1427 | 0, &GNUNET_GETOPT_set_one, &ph.measure_updates}, | 1427 | |
1428 | GNUNET_GETOPT_OPTION_SET_UINT ('p', | ||
1429 | "percentage", | ||
1430 | gettext_noop ("update a fix percentage of addresses"), | ||
1431 | &ph.opt_update_percent), | ||
1432 | |||
1433 | GNUNET_GETOPT_OPTION_SET_ONE ('d', | ||
1434 | "data", | ||
1435 | gettext_noop ("create data file"), | ||
1436 | &ph.create_datafile), | ||
1437 | |||
1438 | GNUNET_GETOPT_OPTION_SET_ONE ('u', | ||
1439 | "update", | ||
1440 | gettext_noop ("measure updates"), | ||
1441 | &ph.measure_updates), | ||
1442 | |||
1428 | GNUNET_GETOPT_OPTION_END | 1443 | GNUNET_GETOPT_OPTION_END |
1429 | }; | 1444 | }; |
1430 | 1445 | ||