aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_proportional.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-07-21 12:30:37 +0200
committert3sserakt <t3ss@posteo.de>2020-07-21 12:30:37 +0200
commit5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7 (patch)
treec26167460724fea683ef51a88ffd93d1fa830412 /src/ats/plugin_ats_proportional.c
parent17d84245fdfeeb1a6da4ffb97898903cb55f702c (diff)
parent7f4ddbcab8598e3d5e29c23ce883cdfa664408f1 (diff)
downloadgnunet-5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7.tar.gz
gnunet-5fa1c7dc809aebb55ef062cb3a2757c54eb6b7e7.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r--src/ats/plugin_ats_proportional.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index f4324d238..52476c825 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -218,6 +218,8 @@ is_bandwidth_available_in_network (struct Network *net,
218 if (((net->total_quota_in / na) > min_bw) && 218 if (((net->total_quota_in / na) > min_bw) &&
219 ((net->total_quota_out / na) > min_bw)) 219 ((net->total_quota_out / na) > min_bw))
220 return GNUNET_YES; 220 return GNUNET_YES;
221 LOG (GNUNET_ERROR_TYPE_DEBUG,
222 "No bandwidth available in network\n");
221 return GNUNET_NO; 223 return GNUNET_NO;
222} 224}
223 225
@@ -1225,7 +1227,7 @@ libgnunet_plugin_ats_proportional_done (void *cls)
1225 GNUNET_CONTAINER_DLL_remove (s->network_entries[c].head, 1227 GNUNET_CONTAINER_DLL_remove (s->network_entries[c].head,
1226 s->network_entries[c].tail, 1228 s->network_entries[c].tail,
1227 cur); 1229 cur);
1228 GNUNET_free_non_null (cur->addr->solver_information); 1230 GNUNET_free (cur->addr->solver_information);
1229 GNUNET_free (cur); 1231 GNUNET_free (cur);
1230 } 1232 }
1231 GNUNET_free (s->network_entries[c].stat_total); 1233 GNUNET_free (s->network_entries[c].stat_total);