aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-12-20 15:05:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-12-20 15:05:19 +0000
commit6a958e216321d3eae44d9d0483d0944d000a4a05 (patch)
treea08bf7765cd564a133a680ea5de379ea0fa996f4
parent22f08a69dbedf1e3ba292cb11de73e8ff891d063 (diff)
downloadgnunet-6a958e216321d3eae44d9d0483d0944d000a4a05.tar.gz
gnunet-6a958e216321d3eae44d9d0483d0944d000a4a05.zip
- change
-rw-r--r--src/ats/gnunet-service-ats_addresses_simplistic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/gnunet-service-ats_addresses_simplistic.c b/src/ats/gnunet-service-ats_addresses_simplistic.c
index 573aa8388..c56d56d0d 100644
--- a/src/ats/gnunet-service-ats_addresses_simplistic.c
+++ b/src/ats/gnunet-service-ats_addresses_simplistic.c
@@ -360,8 +360,8 @@ bw_available_in_network (struct Network *net)
360{ 360{
361 unsigned int na = net->active_addresses + 1; 361 unsigned int na = net->active_addresses + 1;
362 uint32_t min_bw = ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__); 362 uint32_t min_bw = ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__);
363 if ((calculate_new_quota (net->total_quota_in, na) > min_bw) && 363 if (((net->total_quota_in / na) > min_bw) &&
364 (calculate_new_quota (net->total_quota_out, na) > min_bw)) 364 ((net->total_quota_out / na) > min_bw))
365 { 365 {
366 LOG (GNUNET_ERROR_TYPE_DEBUG, 366 LOG (GNUNET_ERROR_TYPE_DEBUG,
367 "Enough bandwidth available for %u active addresses in network `%s'\n", 367 "Enough bandwidth available for %u active addresses in network `%s'\n",
@@ -1098,7 +1098,7 @@ GAS_simplistic_address_change_preference (void *solver,
1098 p->f_rel_total += p->f_rel[i]; 1098 p->f_rel_total += p->f_rel[i];
1099 } 1099 }
1100 p->f_rel_total /= GNUNET_ATS_PreferenceCount - 1.0; 1100 p->f_rel_total /= GNUNET_ATS_PreferenceCount - 1.0;
1101 LOG (GNUNET_ERROR_TYPE_DEBUG, "Client %p: peer `%s' has total relative preference of %3f\n", 1101 LOG (GNUNET_ERROR_TYPE_DEBUG, "Client %p: peer `%s' has total relative preference of %f\n",
1102 cur, 1102 cur,
1103 GNUNET_i2s (&p->id), 1103 GNUNET_i2s (&p->id),
1104 p->f_rel_total); 1104 p->f_rel_total);