From 24875cb6766ad147e23f248b17afa889b3d0a099 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 20 Apr 2012 08:50:54 +0000 Subject: [PATCH] - fix --- src/ats/perf_ats_mlp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 u_types[0] = 0; u_types[1] = 0; + for (cur = 0; cur < addrs; cur ++) + { + updated[cur] = 0; + } + cur = 0; + while (updates < ua) { cur = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, addrs); @@ -311,7 +317,7 @@ check (void *cls, char *const *args, const char *cfgfile, (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); else - 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", + 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", mlp->c_p, mlp->addr_in_problem, (long long unsigned int) ctx.lp_duration.rel_value, (long long unsigned int) ctx.mlp_duration.rel_value, (long long unsigned int) uctx.lp_duration.rel_value, (long long unsigned int) uctx.mlp_duration.rel_value); -- 2.25.1