diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:41:10 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:41:10 +0100 |
commit | e724ea478e4efe6e2531f81908ce0f9334357d81 (patch) | |
tree | ad114d0882c246bb0a314cdb2ca1c025cecef034 /src/fs/gnunet-fs-profiler.c | |
parent | 1c4f90e7c538f1489ea17be3d2f655c2390d7ccf (diff) | |
download | gnunet-e724ea478e4efe6e2531f81908ce0f9334357d81.tar.gz gnunet-e724ea478e4efe6e2531f81908ce0f9334357d81.zip |
porting fs finished.
Diffstat (limited to 'src/fs/gnunet-fs-profiler.c')
-rw-r--r-- | src/fs/gnunet-fs-profiler.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/fs/gnunet-fs-profiler.c b/src/fs/gnunet-fs-profiler.c index cfbe57bbd..fb99d8f90 100644 --- a/src/fs/gnunet-fs-profiler.c +++ b/src/fs/gnunet-fs-profiler.c | |||
@@ -203,16 +203,26 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
203 | int | 203 | int |
204 | main (int argc, char *const *argv) | 204 | main (int argc, char *const *argv) |
205 | { | 205 | { |
206 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 206 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
207 | {'n', "num-peers", "COUNT", | 207 | |
208 | gettext_noop ("run the experiment with COUNT peers"), | 208 | GNUNET_GETOPT_OPTION_SET_UINT ('n', |
209 | 1, &GNUNET_GETOPT_set_uint, &num_peers}, | 209 | "num-peers", |
210 | {'H', "hosts", "HOSTFILE", | 210 | "COUNT", |
211 | gettext_noop ("specifies name of a file with the HOSTS the testbed should use"), | 211 | gettext_noop ("run the experiment with COUNT peers"), |
212 | 1, &GNUNET_GETOPT_set_string, &host_filename}, | 212 | &num_peers), |
213 | {'t', "timeout", "DELAY", | 213 | |
214 | gettext_noop ("automatically terminate experiment after DELAY"), | 214 | GNUNET_GETOPT_OPTION_STRING ('H', |
215 | 1, &GNUNET_GETOPT_set_relative_time, &timeout}, | 215 | "hosts", |
216 | "HOSTFILE", | ||
217 | gettext_noop ("specifies name of a file with the HOSTS the testbed should use"), | ||
218 | &host_filename), | ||
219 | |||
220 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', | ||
221 | "timeout", | ||
222 | "DELAY", | ||
223 | gettext_noop ("automatically terminate experiment after DELAY"), | ||
224 | &timeout), | ||
225 | |||
216 | GNUNET_GETOPT_OPTION_END | 226 | GNUNET_GETOPT_OPTION_END |
217 | }; | 227 | }; |
218 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | 228 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |