diff options
author | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-20 15:05:19 +0000 |
---|---|---|
committer | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-20 15:05:19 +0000 |
commit | f2d1099aac70d7b48b6344cbe20181ffd5936e86 (patch) | |
tree | a08bf7765cd564a133a680ea5de379ea0fa996f4 /src/ats | |
parent | b4d126f946c6b98a073f662c81f8b08d50b3b86c (diff) |
- change
git-svn-id: https://gnunet.org/svn/gnunet@25585 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses_simplistic.c | 6 |
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 573aa83886..c56d56d0d1 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) { 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 @@ GAS_simplistic_address_change_preference (void *solver, 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); |