aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/gnunet-consensus-profiler.c74
1 files changed, 49 insertions, 25 deletions
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c
index 65542f4cd..8cc1b3512 100644
--- a/src/consensus/gnunet-consensus-profiler.c
+++ b/src/consensus/gnunet-consensus-profiler.c
@@ -515,31 +515,55 @@ run (void *cls, char *const *args, const char *cfgfile,
515int 515int
516main (int argc, char **argv) 516main (int argc, char **argv)
517{ 517{
518 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 518 struct GNUNET_GETOPT_CommandLineOption options[] = {
519 { 'n', "num-peers", NULL, 519
520 gettext_noop ("number of peers in consensus"), 520 GNUNET_GETOPT_OPTION_SET_UINT ('n',
521 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_peers }, 521 "num-peers",
522 { 'k', "value-replication", NULL, 522 NULL,
523 gettext_noop ("how many peers (random selection without replacement) receive one value?"), 523 gettext_noop ("number of peers in consensus"),
524 GNUNET_YES, &GNUNET_GETOPT_set_uint, &replication }, 524 &num_peers),
525 { 'x', "num-values", NULL, 525
526 gettext_noop ("number of values"), 526 GNUNET_GETOPT_OPTION_SET_UINT ('k',
527 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_values }, 527 "value-replication",
528 { 't', "timeout", NULL, 528 NULL,
529 gettext_noop ("consensus timeout"), 529 gettext_noop ("how many peers (random selection without replacement) receive one value?"),
530 GNUNET_YES, &GNUNET_GETOPT_set_relative_time, &conclude_timeout }, 530 &replication),
531 { 'd', "delay", NULL, 531
532 gettext_noop ("delay until consensus starts"), 532 GNUNET_GETOPT_OPTION_SET_UINT ('x',
533 GNUNET_YES, &GNUNET_GETOPT_set_relative_time, &consensus_delay }, 533 "num-values",
534 { 's', "statistics", NULL, 534 NULL,
535 gettext_noop ("write statistics to file"), 535 gettext_noop ("number of values"),
536 GNUNET_YES, &GNUNET_GETOPT_set_filename, &statistics_filename }, 536 &num_values),
537 { 'S', "dist-static", NULL, 537
538 gettext_noop ("distribute elements to a static subset of good peers"), 538 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t',
539 GNUNET_YES, &GNUNET_GETOPT_set_one, &dist_static }, 539 "timeout",
540 { 'V', "verbose", NULL, 540 NULL,
541 gettext_noop ("be more verbose (print received values)"), 541 gettext_noop ("consensus timeout"),
542 GNUNET_NO, &GNUNET_GETOPT_set_one, &verbose }, 542 &conclude_timeout),
543
544
545 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('d',
546 "delay",
547 NULL,
548 gettext_noop ("delay until consensus starts"),
549 &consensus_delay),
550
551 GNUNET_GETOPT_OPTION_FILENAME ('s',
552 "statistics",
553 "FILENAME",
554 gettext_noop ("write statistics to file"),
555 &statistics_filename),
556
557 GNUNET_GETOPT_OPTION_SET_ONE ('S',
558 "dist-static",
559 gettext_noop ("distribute elements to a static subset of good peers"),
560 &dist_static),
561
562 GNUNET_GETOPT_OPTION_SET_ONE ('V',
563 "verbose",
564 gettext_noop ("be more verbose (print received values)"),
565 &verbose),
566
543 GNUNET_GETOPT_OPTION_END 567 GNUNET_GETOPT_OPTION_END
544 }; 568 };
545 conclude_timeout = GNUNET_TIME_UNIT_SECONDS; 569 conclude_timeout = GNUNET_TIME_UNIT_SECONDS;