gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21053 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r21053 - gnunet/src/ats
Date: Fri, 20 Apr 2012 10:50:54 +0200

Author: wachs
Date: 2012-04-20 10:50:54 +0200 (Fri, 20 Apr 2012)
New Revision: 21053

Modified:
   gnunet/src/ats/perf_ats_mlp.c
Log:
- fix


Modified: gnunet/src/ats/perf_ats_mlp.c
===================================================================
--- gnunet/src/ats/perf_ats_mlp.c       2012-04-19 19:42:23 UTC (rev 21052)
+++ gnunet/src/ats/perf_ats_mlp.c       2012-04-20 08:50:54 UTC (rev 21053)
@@ -133,6 +133,12 @@
   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 @@
                 (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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]