gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r27736 - gnunet/src/ats
Date: Wed, 3 Jul 2013 17:20:12 +0200

Author: wachs
Date: 2013-07-03 17:20:12 +0200 (Wed, 03 Jul 2013)
New Revision: 27736

Modified:
   gnunet/src/ats/gnunet-service-ats-solver_proportional.c
Log:
removing breaks and output


Modified: gnunet/src/ats/gnunet-service-ats-solver_proportional.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-07-03 
15:09:47 UTC (rev 27735)
+++ gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-07-03 
15:20:12 UTC (rev 27736)
@@ -655,11 +655,12 @@
 
   norm_prop_cur = fba_ctx->s->get_properties (fba_ctx->s->get_properties_cls,
                (const struct ATS_Address *) current);
-  GNUNET_break (0);
   norm_prop_prev = fba_ctx->s->get_properties (fba_ctx->s->get_properties_cls,
                (const struct ATS_Address *) fba_ctx->best);
-
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s previous %u current %u\n", 
"DISTANCE", norm_prop_cur[1], norm_prop_cur[1]);
+/*
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s previous %.2f current %.2f\n",
+               "DISTANCE", norm_prop_cur[1], norm_prop_cur[1]);
+*/
   index = find_property_index (GNUNET_ATS_QUALITY_NET_DISTANCE);
   if (GNUNET_SYSERR == index)
   {
@@ -672,8 +673,10 @@
     fba_ctx->best = current;
     return GNUNET_OK;
   }
-
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s previous %u current %u\n", "DELAY", 
norm_prop_cur[1], norm_prop_cur[1]);
+/*
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s previous %.2f current %.2f\n",
+               "DELAY", norm_prop_cur[1], norm_prop_cur[1]);
+ */
   index = find_property_index (GNUNET_ATS_QUALITY_NET_DELAY);
   if (GNUNET_SYSERR == index)
   {
@@ -1124,7 +1127,7 @@
   s->bulk_lock --;
   if ((0 == s->bulk_lock) && (0 < s->bulk_requests))
   {
-       LOG (GNUNET_ERROR_TYPE_ERROR, "No lock pending, recalculating\n");
+       LOG (GNUNET_ERROR_TYPE_DEBUG, "No lock pending, recalculating\n");
        distribute_bandwidth_in_all_networks (s);
        s->bulk_requests = 0;
   }
@@ -1249,11 +1252,9 @@
                 /* Have an alternative address to suggest */
                 s->bw_changed  (s->bw_changed_cls, new);
             }
-
           }
         }
       }
-
       break;
     case GNUNET_ATS_ARRAY_TERMINATOR:
       break;




reply via email to

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