diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2015-02-01 18:31:01 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2015-02-01 18:31:01 +0000 |
commit | 2a02e433402352ed4945f4b3a954a528fdd3f0bb (patch) | |
tree | be6a396e556b8697717b5bc9b9b1505f070c56f7 /src/ats/plugin_ats_proportional.c | |
parent | a6901b4f55d3aa3c962d25b88da6bee03a9d4c4c (diff) | |
download | gnunet-2a02e433402352ed4945f4b3a954a528fdd3f0bb.tar.gz gnunet-2a02e433402352ed4945f4b3a954a528fdd3f0bb.zip |
Use configured stability factor, not constant
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 0298c162f..d1518391e 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c | |||
@@ -776,7 +776,7 @@ find_best_address_it (void *cls, | |||
776 | GNUNET_assert (asi->activated.abs_value_us != GNUNET_TIME_UNIT_ZERO_ABS.abs_value_us); | 776 | GNUNET_assert (asi->activated.abs_value_us != GNUNET_TIME_UNIT_ZERO_ABS.abs_value_us); |
777 | active_time = GNUNET_TIME_absolute_get_duration (asi->activated); | 777 | active_time = GNUNET_TIME_absolute_get_duration (asi->activated); |
778 | min_active_time.rel_value_us = ((double) GNUNET_TIME_UNIT_SECONDS.rel_value_us) * | 778 | min_active_time.rel_value_us = ((double) GNUNET_TIME_UNIT_SECONDS.rel_value_us) * |
779 | PROP_STABILITY_FACTOR; | 779 | ctx->s->stability_factor; |
780 | if (active_time.rel_value_us <= min_active_time.rel_value_us) | 780 | if (active_time.rel_value_us <= min_active_time.rel_value_us) |
781 | { | 781 | { |
782 | /* Keep active address for stability reasons */ | 782 | /* Keep active address for stability reasons */ |