aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-20 08:50:54 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-20 08:50:54 +0000
commit24875cb6766ad147e23f248b17afa889b3d0a099 (patch)
tree8bf76e1629b54c8b5e3347f576805f52868d85ff /src/ats
parent00e8b3cd55c34061fc5939f1f424a62a5840c1f2 (diff)
downloadgnunet-24875cb6766ad147e23f248b17afa889b3d0a099.tar.gz
gnunet-24875cb6766ad147e23f248b17afa889b3d0a099.zip
- fix
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/perf_ats_mlp.c8
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);