diff options
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/perf_ats_mlp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ats/perf_ats_mlp.c b/src/ats/perf_ats_mlp.c index f5be6bac1..1edf5a214 100644 --- a/src/ats/perf_ats_mlp.c +++ b/src/ats/perf_ats_mlp.c | |||
@@ -133,6 +133,12 @@ update_addresses (struct ATS_Address * a, unsigned int addrs, unsigned int perce | |||
133 | u_types[0] = 0; | 133 | u_types[0] = 0; |
134 | u_types[1] = 0; | 134 | u_types[1] = 0; |
135 | 135 | ||
136 | for (cur = 0; cur < addrs; cur ++) | ||
137 | { | ||
138 | updated[cur] = 0; | ||
139 | } | ||
140 | cur = 0; | ||
141 | |||
136 | while (updates < ua) | 142 | while (updates < ua) |
137 | { | 143 | { |
138 | cur = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, addrs); | 144 | cur = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, addrs); |
@@ -311,7 +317,7 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
311 | (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, | 317 | (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, |
312 | (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); | 318 | (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); |
313 | else | 319 | else |
314 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Updated Problem solved for %u peers with %u address successfully (Initial: LP/MLP: %llu/%llu ms, Update: %llu/%llu ms)\n", | 320 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Updated problem solved for %u peers with %u address successfully (Initial: LP/MLP: %llu/%llu ms, Update: %llu/%llu ms)\n", |
315 | mlp->c_p, mlp->addr_in_problem, | 321 | mlp->c_p, mlp->addr_in_problem, |
316 | (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, | 322 | (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, |
317 | (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); | 323 | (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); |