diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-06 15:50:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-06 15:50:20 +0000 |
commit | 6e198fdbfa22da72fadcae22b8797af76696b78a (patch) | |
tree | c5f5ff123a8670df80a7a286879f7e710aefe843 /src/ats/plugin_ats_mlp.c | |
parent | 4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad (diff) | |
download | gnunet-6e198fdbfa22da72fadcae22b8797af76696b78a.tar.gz gnunet-6e198fdbfa22da72fadcae22b8797af76696b78a.zip |
- refine preference calculcations to reflect all clients
- refining bandwidth distribution in a network
- adding a configurable factor to better respect preferences
Diffstat (limited to 'src/ats/plugin_ats_mlp.c')
-rw-r--r-- | src/ats/plugin_ats_mlp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_mlp.c b/src/ats/plugin_ats_mlp.c index 1ceb294ca..1c93915cf 100644 --- a/src/ats/plugin_ats_mlp.c +++ b/src/ats/plugin_ats_mlp.c | |||
@@ -1681,7 +1681,7 @@ get_peer_pref_value (struct GAS_MLP_Handle *mlp, const struct GNUNET_PeerIdentit | |||
1681 | int c; | 1681 | int c; |
1682 | preferences = mlp->get_preferences (mlp->get_preferences_cls, peer); | 1682 | preferences = mlp->get_preferences (mlp->get_preferences_cls, peer); |
1683 | 1683 | ||
1684 | res = 0.0; | 1684 | res = 1.0; |
1685 | for (c = 0; c < GNUNET_ATS_PreferenceCount; c++) | 1685 | for (c = 0; c < GNUNET_ATS_PreferenceCount; c++) |
1686 | { | 1686 | { |
1687 | if (c != GNUNET_ATS_PREFERENCE_END) | 1687 | if (c != GNUNET_ATS_PREFERENCE_END) |