aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_proportional.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-02-01 18:35:51 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-02-01 18:35:51 +0000
commitbd428c4891e777b66eaccf5d4cb675104136eac1 (patch)
treeea7faf16c9478a87b62a0b65380e520e41f12277 /src/ats/plugin_ats_proportional.c
parent2a02e433402352ed4945f4b3a954a528fdd3f0bb (diff)
downloadgnunet-bd428c4891e777b66eaccf5d4cb675104136eac1.tar.gz
gnunet-bd428c4891e777b66eaccf5d4cb675104136eac1.zip
Use configured proportionality factor
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r--src/ats/plugin_ats_proportional.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index d1518391e..64dca90c5 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -2006,7 +2006,8 @@ libgnunet_plugin_ats_proportional_init (void *cls)
2006 s->prop_factor = PROPORTIONALITY_FACTOR; 2006 s->prop_factor = PROPORTIONALITY_FACTOR;
2007 if (GNUNET_SYSERR != 2007 if (GNUNET_SYSERR !=
2008 GNUNET_CONFIGURATION_get_value_float (env->cfg, "ats", 2008 GNUNET_CONFIGURATION_get_value_float (env->cfg, "ats",
2009 "PROP_STABILITY_FACTOR", &f_tmp)) 2009 "PROP_PROPORTIONALITY_FACTOR",
2010 &f_tmp))
2010 { 2011 {
2011 if (f_tmp < 1.0) 2012 if (f_tmp < 1.0)
2012 { 2013 {