diff options
Diffstat (limited to 'src/testing/test_testing_large_topology.c')
-rw-r--r-- | src/testing/test_testing_large_topology.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/testing/test_testing_large_topology.c b/src/testing/test_testing_large_topology.c index 78d91fa3d..a27154507 100644 --- a/src/testing/test_testing_large_topology.c +++ b/src/testing/test_testing_large_topology.c | |||
@@ -1043,26 +1043,25 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
1043 | GNUNET_free_non_null (topology_str); | 1043 | GNUNET_free_non_null (topology_str); |
1044 | GNUNET_free_non_null (blacklist_topology_str); | 1044 | GNUNET_free_non_null (blacklist_topology_str); |
1045 | 1045 | ||
1046 | if (GNUNET_OK == | 1046 | if (GNUNET_OK != |
1047 | GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "settle_time", | 1047 | GNUNET_CONFIGURATION_get_value_time (cfg, "testing", "SETTLE_TIME", |
1048 | &temp_settle)) | 1048 | &settle_time)) |
1049 | settle_time = | 1049 | { |
1050 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, temp_settle); | 1050 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Must provide option %s:%s!\n", |
1051 | 1051 | "testing", "SETTLE_TIME"); | |
1052 | return; | ||
1053 | } | ||
1052 | if (GNUNET_SYSERR == | 1054 | if (GNUNET_SYSERR == |
1053 | GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", | 1055 | GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", |
1054 | &num_peers)) | 1056 | &num_peers)) |
1055 | num_peers = DEFAULT_NUM_PEERS; | 1057 | num_peers = DEFAULT_NUM_PEERS; |
1056 | 1058 | ||
1057 | if (GNUNET_OK == | 1059 | if (GNUNET_OK != |
1058 | GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "connect_timeout", | 1060 | GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "CONNECT_TIMEOUT", |
1059 | &temp_settle)) | 1061 | &connect_timeout)) |
1060 | connect_timeout = | ||
1061 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, temp_settle); | ||
1062 | else | ||
1063 | { | 1062 | { |
1064 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Must provide option %s:%s!\n", | 1063 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Must provide option %s:%s!\n", |
1065 | "testing", "connect_timeout"); | 1064 | "testing", "CONNECT_TIMEOUT"); |
1066 | return; | 1065 | return; |
1067 | } | 1066 | } |
1068 | 1067 | ||