[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33649 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33649 - gnunet/src/ats |
Date: |
Wed, 11 Jun 2014 12:53:46 +0200 |
Author: grothoff
Date: 2014-06-11 12:53:46 +0200 (Wed, 11 Jun 2014)
New Revision: 33649
Modified:
gnunet/src/ats/plugin_ats_proportional.c
Log:
-trying to fix #3426
Modified: gnunet/src/ats/plugin_ats_proportional.c
===================================================================
--- gnunet/src/ats/plugin_ats_proportional.c 2014-06-11 10:47:40 UTC (rev
33648)
+++ gnunet/src/ats/plugin_ats_proportional.c 2014-06-11 10:53:46 UTC (rev
33649)
@@ -646,8 +646,9 @@
remaining_quota_in = net->total_quota_in - (net->active_addresses * min_bw);
remaining_quota_out = net->total_quota_out - (net->active_addresses *
min_bw);
- LOG(GNUNET_ERROR_TYPE_DEBUG, "Remaining bandwidth : (in/out): %llu/%llu \n",
- remaining_quota_in, remaining_quota_out);
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Remaining bandwidth : (in/out): %llu/%llu \n",
+ remaining_quota_in, remaining_quota_out);
sum_relative_peer_prefences = 0.0;
/* Calculate sum of relative preference for active addresses in this network
*/
@@ -667,18 +668,22 @@
if (count_addresses != net->active_addresses)
{
- GNUNET_break (0);
- LOG(GNUNET_ERROR_TYPE_WARNING,
- "%s: Counted %u active addresses, but network says to have %u active
addresses \n",
- net->desc, count_addresses, net->active_addresses);
+ LOG ( (count_addresses > net->active_addresses)
+ ? GNUNET_ERROR_TYPE_WARNING
+ : GNUNET_ERROR_TYPE_INFO,
+ "%s: Counted %u active addresses, but network says to have %u active
addresses \n",
+ net->desc,
+ count_addresses,
+ net->active_addresses);
for (cur_address = net->head; NULL != cur_address; cur_address =
cur_address->next)
{
if (GNUNET_YES != cur_address->addr->active)
continue;
-
- LOG (GNUNET_ERROR_TYPE_WARNING, "Active: `%s' `%s' length %u\n",
- GNUNET_i2s (&cur_address->addr->peer), cur_address->addr->plugin,
- cur_address->addr->addr_len);
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ "Active: `%s' `%s' length %u\n",
+ GNUNET_i2s (&cur_address->addr->peer),
+ cur_address->addr->plugin,
+ cur_address->addr->addr_len);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33649 - gnunet/src/ats,
gnunet <=