gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r25585 - gnunet/src/ats
Date: Thu, 20 Dec 2012 16:05:19 +0100

Author: wachs
Date: 2012-12-20 16:05:19 +0100 (Thu, 20 Dec 2012)
New Revision: 25585

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
Log:
- change


Modified: gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2012-12-20 
15:01:02 UTC (rev 25584)
+++ gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2012-12-20 
15:05:19 UTC (rev 25585)
@@ -360,8 +360,8 @@
 {
   unsigned int na = net->active_addresses + 1;
   uint32_t min_bw = ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__);
-  if ((calculate_new_quota (net->total_quota_in, na) > min_bw) &&
-      (calculate_new_quota (net->total_quota_out, na) > min_bw))
+  if (((net->total_quota_in / na) > min_bw) &&
+      ((net->total_quota_out / na) > min_bw))
   {    
     LOG (GNUNET_ERROR_TYPE_DEBUG,
          "Enough bandwidth available for %u active addresses in network 
`%s'\n",
@@ -1098,7 +1098,7 @@
         p->f_rel_total += p->f_rel[i];
     }
     p->f_rel_total /=  GNUNET_ATS_PreferenceCount - 1.0;
-    LOG (GNUNET_ERROR_TYPE_DEBUG, "Client %p: peer `%s' has total relative 
preference of %3f\n",
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "Client %p: peer `%s' has total relative 
preference of %f\n",
         cur,
         GNUNET_i2s (&p->id),
         p->f_rel_total);




reply via email to

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